/* ═══════════════════════════════════════════════════
   GIMNASIA RÍTMICA — DIRECTORIO DE CLUBES
   styles.css — generado desde especificaciones SDD
   ═══════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-base);
  color: var(--text-base);
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── CSS Variables — Light theme (:root) ──────────── */
:root {
  --bg-base:      #f4f5f8;
  --bg-card:      #ffffff;
  --bg-hover:     #f0f1f5;
  --bg-input:     #f8f9fb;
  --bg-sidebar:   #ffffff;

  --text-base:    #1a1d27;
  --text-muted:   #3d4155;
  --text-label:   #7b7f99;

  --border:       #e2e4ed;
  --border-light: #eceef5;

  --accent:       #7b67cb;
  --accent-rgb:   123,103,203;
  --accent-soft:  #ede9fb;
  --accent-hover: #6a57bb;
  --accent2:      #55a49c;
  --accent2-soft: #e2f5f3;

  --fav-col:      #e8a020;
  --geo-text:     #3a7020;

  --sh-sm:  0 1px 4px rgba(0,0,0,.06);
  --sh-md:  0 4px 16px rgba(0,0,0,.10);
  --sh-lg:  0 8px 32px rgba(0,0,0,.14);

  --card-min-w:   275px;
  --header-h:     58px;
  --nav-h:        42px;
}

/* ── CSS Variables — Dark theme ───────────────────── */
html.dark {
  --bg-base:      #12131a;
  --bg-card:      #1c1e2a;
  --bg-hover:     #252736;
  --bg-input:     #1f2130;
  --bg-sidebar:   #1c1e2a;

  --text-base:    #e8eaf2;
  --text-muted:   #b0b4cc;
  --text-label:   #636880;

  --border:       #2e3045;
  --border-light: #262840;

  --accent:       #9b8ee0;
  --accent-rgb:   155,142,224;
  --accent-soft:  #262448;
  --accent-hover: #aa9eeb;
  --accent2:      #5cbab0;
  --accent2-soft: #1d3835;

  --fav-col:      #f0b840;
  --geo-text:     #7ad060;

  --sh-sm:  0 1px 4px rgba(0,0,0,.3);
  --sh-md:  0 4px 16px rgba(0,0,0,.4);
  --sh-lg:  0 8px 32px rgba(0,0,0,.5);
}

/* ── Typography tokens ────────────────────────────── */
html[data-fontsize="large"] { font-size: 18px; }

/* ── Loader ring ──────────────────────────────────── */
.loader-ring {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ─────────────────────────────────────────────────────
   LOADING SCREEN
───────────────────────────────────────────────────── */
#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-base);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.25rem;
  transition: opacity .35s;
}
#loading-screen.hide { opacity: 0; pointer-events: none; }
#loading-screen img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
#loading-screen p { font-size: .82rem; color: var(--text-label); }

/* ─────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────── */
#app-header {
  height: var(--header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  gap: .75rem;
  flex-shrink: 0;
  z-index: 100;
}
.header-left  { display: flex; align-items: center; gap: 11px; }
.header-right { display: flex; align-items: center; gap: 7px; }

.header-logo  { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.app-title    { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.app-subtitle { font-size: .72rem; color: var(--text-label); }

.header-brand-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.header-brand-link { display: flex; align-items: center; }

#btn-hamburger {
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: transparent; color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
#btn-hamburger:hover { background: var(--bg-hover); }

.theme-switch {
  width: 32px; height: 18px; border-radius: 99px;
  background: var(--accent-soft); border: 1.5px solid var(--border);
  cursor: pointer; position: relative; transition: background .2s;
}
.theme-switch::after {
  content: ''; position: absolute;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); top: 1px; left: 1px;
  transition: transform .2s;
}
html.dark .theme-switch::after { transform: translateX(14px); }

.btn-icon-header {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--bg-hover);
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.btn-icon-header:hover { background: var(--accent-soft); color: var(--accent); }

.btn-emp-header {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--bg-hover);
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.btn-emp-header:hover { background: var(--accent-soft); color: var(--accent); border-color: rgba(var(--accent-rgb),.3); }

/* ─────────────────────────────────────────────────────
   NAV TABS (desktop)
───────────────────────────────────────────────────── */
#nav-tabs {
  height: var(--nav-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: stretch;
  padding: 0 .5rem;
  gap: 2px; flex-shrink: 0;
  overflow-x: auto;
}
.nav-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 0 .85rem; font-size: .78rem; font-weight: 600;
  color: var(--text-label); background: transparent;
  border: none; border-bottom: 2.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: color .18s, border-color .18s;
}
.nav-tab:hover  { color: var(--text-base); }
.nav-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ─────────────────────────────────────────────────────
   MOBILE BOTTOM NAV (≤700px)
───────────────────────────────────────────────────── */
#mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  height: 58px; padding: 0 .25rem;
  align-items: stretch; justify-content: space-around;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.mbn-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  border: none; background: transparent; color: var(--text-label);
  font-size: .62rem; font-weight: 600; cursor: pointer; transition: color .18s;
  padding: 0;
}
.mbn-btn.active { color: var(--accent); }
.mbn-icon { width: 20px; height: 20px; }

/* ─────────────────────────────────────────────────────
   MAIN LAYOUT
───────────────────────────────────────────────────── */
#app-main {
  flex: 1; display: flex; overflow: hidden; position: relative;
}

/* ── Sidebar backdrop (mobile) ── */
#sidebar-backdrop {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.45); backdrop-filter: blur(2px);
}
#sidebar-backdrop.open { display: block; }

/* ─────────────────────────────────────────────────────
   VIEWS — generic show/hide
───────────────────────────────────────────────────── */
#view-list { display: flex; flex: 1; overflow: hidden; position: relative; }
#view-map  { display: none; flex: 1; flex-direction: column; overflow: hidden; }
#view-stats, #view-novedades, #view-eventos,
#view-alta, #view-revision,
#view-convocatorias, #view-ranking,
#view-notificaciones { display: none; flex: 1; overflow-y: auto; }

#view-map.show    { display: flex !important; }
#view-stats.show, #view-novedades.show, #view-eventos.show,
#view-alta.show,  #view-revision.show,
#view-convocatorias.show, #view-ranking.show,
#view-notificaciones.show { display: flex !important; }

/* Per-view flex-direction (header + content must stack vertically) */
#view-convocatorias  { flex-direction: column; }

/* ─────────────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────────────── */
#sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: .85rem .75rem;
  gap: .65rem; overflow-y: auto;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}

.sec-title {
  font-size: .65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-label); margin-bottom: .35rem;
}

.input-base {
  width: 100%; padding: .42rem .7rem;
  background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: 9px; color: var(--text-base);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .84rem;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.input-base:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.13); }
.input-base::placeholder { color: var(--text-label); }

.divider { height: 1px; background: var(--border-light); margin: .15rem 0; }

.fav-filter-btn {
  display: flex; align-items: center; gap: 6px;
  width: 100%; padding: .38rem .6rem;
  background: var(--bg-hover); border: 1.5px solid var(--border);
  border-radius: 9px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .78rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all .18s;
}
.fav-filter-btn.active { background: var(--fav-col); color: white; border-color: var(--fav-col); }
.fav-filter-btn:hover:not(.active) { background: var(--border); }
.fav-filter-count {
  margin-left: auto; background: var(--accent-soft); color: var(--accent);
  font-size: .68rem; font-weight: 700; padding: 1px 6px;
  border-radius: 99px; min-width: 18px; text-align: center;
}

/* Geo UI */
#btn-geo {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: .42rem .7rem; background: var(--accent); color: white;
  border: none; border-radius: 9px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .8rem; font-weight: 700; cursor: pointer; transition: background .18s;
}
#btn-geo:hover { background: var(--accent-hover); }
#btn-geo.loading { opacity: .7; pointer-events: none; }

#geo-status-box {
  display: none; align-items: flex-start; gap: 8px;
  padding: .55rem .65rem; background: color-mix(in srgb, var(--geo-text) 12%, transparent);
  border-radius: 9px; border: 1px solid color-mix(in srgb, var(--geo-text) 25%, transparent);
}
#geo-status-box.show { display: flex; }
.geo-status-text { font-size: .72rem; font-weight: 600; color: var(--geo-text); }

.sort-row { display: flex; gap: 4px; margin-top: 4px; }
.sort-btn {
  font-size: .68rem; font-weight: 700; padding: 2px 8px;
  border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg-hover); color: var(--text-label);
  cursor: pointer; transition: all .15s;
}
.sort-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

#btn-geo-clear {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  border: none; background: transparent; color: var(--geo-text);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s; margin-left: auto;
}
#btn-geo-clear:hover { background: var(--border); }

#radius-section { display: none; padding-top: .35rem; }
#radius-section.show { display: block; }
.radius-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.radius-label  { font-size: .72rem; color: var(--text-label); font-weight: 600; }
.radius-value  { font-size: .72rem; font-weight: 700; color: var(--accent); }

.radius-presets { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: .4rem; }
.radius-preset {
  font-size: .68rem; font-weight: 700; padding: 2px 7px;
  border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg-hover); color: var(--text-label);
  cursor: pointer; transition: all .15s;
}
.radius-preset.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(var(--accent-rgb),.3); }

.radius-slider {
  width: 100%; height: 4px; border-radius: 2px;
  appearance: none; outline: none; cursor: pointer;
  background: linear-gradient(to right, var(--accent) var(--fill, 100%), var(--border) var(--fill, 100%));
}
.radius-slider::-webkit-slider-thumb {
  appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 2px solid white; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.radius-extremes { display: flex; justify-content: space-between; font-size: .65rem; color: var(--text-label); margin-top: 3px; }

/* Community filter */
.check-item {
  display: flex; align-items: center; gap: 6px;
  padding: .28rem .4rem; border-radius: 7px; cursor: pointer;
  font-size: .77rem; color: var(--text-muted); transition: background .15s;
}
.check-item:hover { background: var(--bg-hover); }
.check-item input { accent-color: var(--accent); cursor: pointer; }

.btn-reset {
  display: flex; align-items: center; gap: 6px;
  width: 100%; padding: .38rem .6rem;
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 9px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .76rem; font-weight: 600; color: var(--text-label);
  cursor: pointer; transition: all .18s;
}
.btn-reset:hover { background: var(--bg-hover); color: var(--text-base); }

/* Recently viewed */
.rec-box { display: flex; flex-direction: column; gap: 2px; }
.rec-item {
  display: flex; align-items: center; gap: 7px;
  padding: .32rem .4rem; border-radius: 8px; cursor: pointer;
  transition: background .15s;
}
.rec-item:hover { background: var(--bg-hover); }
.rec-avatar {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: .7rem; font-weight: 600; color: var(--accent);
}
.rec-name { font-size: .75rem; font-weight: 600; color: var(--text-base); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-city { font-size: .68rem; color: var(--text-label); }

/* Stats summary */
.stats-box { background: var(--bg-hover); border-radius: 10px; padding: .75rem; border: 1px solid var(--border-light); }
.stat-n { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-l { font-size: .65rem; color: var(--text-label); margin-top: 2px; }

/* Advanced search */
.btn-adv-search {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: .38rem .6rem; background: var(--bg-hover);
  border: 1.5px solid var(--border); border-radius: 9px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .77rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: all .18s;
}
.btn-adv-search:hover, .btn-adv-search.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(var(--accent-rgb),.3); }
.btn-adv-search.has-filters { color: var(--accent); border-color: var(--accent); }

#adv-search-panel { display: flex; flex-direction: column; gap: .35rem; padding: .4rem .1rem; }
.adv-row { display: flex; align-items: center; justify-content: space-between; }
.adv-check-label { display: flex; align-items: center; gap: 6px; font-size: .77rem; color: var(--text-muted); cursor: pointer; }
.adv-check { accent-color: var(--accent); cursor: pointer; }
.adv-label { font-size: .73rem; color: var(--text-label); }
.adv-select {
  padding: .28rem .5rem; background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: 7px; color: var(--text-base); font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .75rem; outline: none;
}
.adv-reset-btn {
  font-size: .72rem; color: var(--text-label); background: transparent;
  border: none; cursor: pointer; text-align: left; padding: .2rem 0;
  text-decoration: underline; transition: color .15s;
}
.adv-reset-btn:hover { color: var(--accent); }

/* ─────────────────────────────────────────────────────
   CLUBS AREA
───────────────────────────────────────────────────── */
#clubs-area {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; min-width: 0;
}

#results-bar {
  flex-shrink: 0; padding: .55rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card); gap: .5rem; flex-wrap: wrap;
}
#results-text { font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.results-bar-right { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }

.btn-export, .btn-maps-export, .btn-share {
  display: inline-flex; align-items: center; gap: 5px; padding: .34rem .7rem;
  border-radius: 8px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .75rem; font-weight: 700; cursor: pointer; transition: all .18s;
  border: 1.5px solid var(--border); background: var(--bg-hover); color: var(--text-muted);
}
.btn-export:hover, .btn-maps-export:hover, .btn-share:hover { background: var(--border); color: var(--text-base); }

.export-menu {
  display: none; position: absolute; top: calc(100% + 4px); right: 0;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 12px; box-shadow: var(--sh-lg); z-index: 300;
  min-width: 220px; padding: .4rem;
}
.export-menu.show { display: block; }
.export-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: .5rem .65rem; border-radius: 8px; border: none;
  background: transparent; color: var(--text-base); font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .78rem; font-weight: 600; cursor: pointer; text-align: left; transition: background .15s;
}
.export-item:hover { background: var(--bg-hover); }
.export-item-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.export-divider { height: 1px; background: var(--border-light); margin: .2rem 0; }

.view-toggle { display: flex; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.view-btn {
  width: 30px; height: 28px; border: none; background: var(--bg-hover);
  color: var(--text-label); cursor: pointer; transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.view-btn.active { background: var(--accent-soft); color: var(--accent); }

/* ── Grid of clubs ── */
#clubs-grid {
  flex: 1; overflow-y: auto; padding: .85rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-min-w), 1fr));
  gap: .75rem; align-content: start;
}

/* ── Club card ── */
.club-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: .9rem; cursor: pointer;
  box-shadow: var(--sh-sm); position: relative;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  animation: fadeIn .3s both;
}
.club-card:hover    { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: rgba(var(--accent-rgb),.3); }
.club-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb),.2); }
.club-card.fav-glow { border-color: var(--fav-col); }
html[data-animations="false"] .club-card { animation: none; }

.card-name { font-family: 'Fraunces', serif; font-size: .95rem; font-weight: 600; color: var(--text-base); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-row  { display: flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--text-muted); padding: .18rem 0; min-width: 0; }
.info-row a { color: var(--accent2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-row a:hover { text-decoration: underline; }
.ig-link { color: #c87cc0 !important; }

.card-fav-btn {
  position: absolute; top: .6rem; right: .6rem;
  width: 26px; height: 26px; border-radius: 7px; border: none;
  background: var(--bg-hover); color: var(--fav-col);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.card-fav-btn:hover, .card-fav-btn.active { background: rgba(var(--fav-col), .15); }

.card-cmp-btn {
  position: absolute; top: .6rem; left: .6rem;
  width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--border);
  background: var(--bg-hover); color: var(--text-label);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; transition: all .15s;
}
.card-cmp-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 99px;
  background: var(--bg-hover); border: 1px solid var(--border);
  font-size: .68rem; font-weight: 600; color: var(--text-muted);
}
.badge2 {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 99px;
  background: var(--accent2-soft); border: 1px solid color-mix(in srgb, var(--accent2) 25%, transparent);
  font-size: .68rem; font-weight: 600; color: var(--accent2);
}
.badge2-flag {}
.badge-dist {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 99px;
  background: color-mix(in srgb, var(--geo-text) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--geo-text) 25%, transparent);
  font-size: .68rem; font-weight: 700; color: var(--geo-text);
}
.com-flag { width: 14px; height: 10px; object-fit: cover; border-radius: 2px; }

/* Logo in card */
.club-logo-img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.club-logo-ph  {
  width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: .85rem; font-weight: 700; color: var(--accent);
}

/* Empty state */
.empty-state {
  grid-column: 1/-1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem; gap: .6rem; text-align: center;
}

/* ── Table view ── */
#clubs-table-wrap { flex: 1; overflow-y: auto; padding: .5rem 1rem; }
#clubs-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
#clubs-table thead th {
  padding: .5rem .75rem; text-align: left; font-weight: 700; font-size: .72rem;
  color: var(--text-label); background: var(--bg-card);
  border-bottom: 1.5px solid var(--border); cursor: pointer;
  position: sticky; top: 0; z-index: 2; transition: color .15s; white-space: nowrap;
}
#clubs-table thead th:hover { color: var(--text-base); }
#clubs-table thead th.sort-asc::after  { content: ' ↑'; color: var(--accent); }
#clubs-table thead th.sort-desc::after { content: ' ↓'; color: var(--accent); }
.tbl-row { cursor: pointer; transition: background .15s; }
.tbl-row:hover { background: var(--bg-hover); }
.tbl-row.selected { background: var(--accent-soft); }
.tbl-row td { padding: .5rem .75rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.tbl-name  { font-weight: 700; color: var(--text-base); font-size: .82rem; }
.tbl-city  { color: var(--text-muted); font-size: .78rem; }
.tbl-dist  { color: var(--geo-text); font-size: .76rem; font-weight: 700; }
.tbl-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: .72rem; font-weight: 600; color: var(--accent); flex-shrink: 0;
}
.tbl-fav-btn { background: transparent; border: none; cursor: pointer; color: var(--fav-col); display: flex; align-items: center; }
.tbl-web { color: var(--accent2); font-weight: 700; text-decoration: none; font-size: .78rem; padding: .1rem .3rem; }

/* Print styles */
@media print {
  #app-header, #nav-tabs, #sidebar, #results-bar,
  .card-fav-btn, .card-cmp-btn, #clubs-grid,
  #detail-panel, #detail-backdrop { display: none !important; }
  #clubs-table-wrap { display: block !important; }
  #print-header { display: block !important; }
  body { overflow: auto; }
}
#print-header { display: none; }

/* ── Proximity banner ── */
#proximity-banner { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: .65rem 1rem; }
#proximity-banner.visible { display: block !important; }
#prox-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .55rem; }
#prox-title  { display: flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; color: var(--text-base); }
#prox-close  { background: transparent; border: none; cursor: pointer; color: var(--text-label); display: flex; align-items: center; }
#prox-cards  { display: flex; gap: .65rem; overflow-x: auto; padding-bottom: .25rem; }
.prox-card   {
  display: flex; align-items: center; gap: .65rem; min-width: 200px;
  background: var(--bg-hover); border: 1px solid var(--border); border-radius: 12px;
  padding: .55rem .75rem; cursor: pointer; transition: box-shadow .18s; flex-shrink: 0;
}
.prox-card:hover { box-shadow: var(--sh-md); }
.prox-logo   { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.prox-logo-ph {
  width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: .72rem; font-weight: 700; color: var(--accent); flex-shrink: 0;
}
.prox-name   { font-size: .78rem; font-weight: 700; color: var(--text-base); }
.prox-city   { font-size: .7rem; color: var(--text-label); }
.prox-dist   { font-size: .82rem; font-weight: 800; color: var(--geo-text); white-space: nowrap; }
.prox-dist-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.prox-maps-btn {
  font-size: .66rem; font-weight: 700; color: var(--accent2); text-decoration: none;
  display: flex; align-items: center; gap: 3px; white-space: nowrap;
}

/* ── Mobile search bar ── */
#mobile-search-bar {
  display: none; padding: .5rem .75rem;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  gap: .5rem; align-items: center;
}
#mobile-search-wrap {
  flex: 1; position: relative; display: flex; align-items: center;
}
#mobile-search-wrap svg { position: absolute; left: 8px; pointer-events: none; color: var(--text-label); }
#mobile-search-input {
  width: 100%; padding: .42rem .7rem .42rem 2rem;
  background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: 9px; color: var(--text-base);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .84rem; outline: none;
}
#btn-mobile-filter {
  width: 36px; height: 36px; border-radius: 9px; border: 1.5px solid var(--border);
  background: var(--bg-hover); color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#btn-mobile-filter.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(var(--accent-rgb),.3); }

/* ─────────────────────────────────────────────────────
   DETAIL PANEL
───────────────────────────────────────────────────── */
#detail-backdrop {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.42); backdrop-filter: blur(3px);
}
#detail-backdrop.open { display: block; }

#detail-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(94vw, 400px); z-index: 401;
  background: var(--bg-card); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; box-shadow: var(--sh-lg);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
#detail-panel.open { transform: translateX(0); }

#dp-header {
  display: flex; align-items: center; gap: 11px;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--border-light); flex-shrink: 0;
}
#dp-avatar {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: .95rem; font-weight: 700; color: var(--accent);
  overflow: hidden; border: 1.5px solid var(--border);
}
#dp-avatar img { width: 100%; height: 100%; object-fit: cover; }
#dp-name { font-family: 'Fraunces', serif; font-size: .98rem; font-weight: 600; color: var(--text-base); }
#dp-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dp-close {
  margin-left: auto; width: 28px; height: 28px; border-radius: 7px;
  border: none; background: transparent; color: var(--text-muted);
  cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.dp-close:hover { background: var(--bg-hover); }

#dp-body { flex: 1; overflow-y: auto; }
.dp-section { padding: .7rem 1.1rem; border-bottom: 1px solid var(--border-light); }
.dp-section:last-child { border-bottom: none; }
.dp-section-title { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-label); margin-bottom: .5rem; }

.dp-row { display: flex; align-items: center; gap: 8px; padding: .22rem 0; }
.dp-icon {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dp-row a { font-size: .8rem; color: var(--text-muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-row a:hover { color: var(--accent2); text-decoration: underline; }

#dp-dist-callout {
  display: none; align-items: center; gap: 7px;
  padding: .45rem .7rem; background: color-mix(in srgb, var(--geo-text) 10%, transparent);
  border-radius: 9px; border: 1px solid color-mix(in srgb, var(--geo-text) 20%, transparent);
  font-size: .78rem; font-weight: 700; color: var(--geo-text);
}
#dp-dist-callout.show { display: flex; }

#dp-mini-map { height: 160px; border-radius: 10px; overflow: hidden; margin: .5rem 0; border: 1px solid var(--border); }
#dp-mini-map-inner { width: 100%; height: 100%; isolation: isolate; }

.dp-actions { display: flex; flex-direction: column; gap: .45rem; }
.dp-btn {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: .42rem .8rem; border-radius: 9px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .78rem; font-weight: 700; cursor: pointer; transition: all .18s;
  text-decoration: none; border: none; justify-content: center;
}
.dp-btn-primary  { background: var(--accent); color: white; box-shadow: 0 2px 8px rgba(var(--accent-rgb),.25); }
.dp-btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.dp-btn-secondary { background: var(--bg-hover); color: var(--text-muted); border: 1.5px solid var(--border); }
.dp-btn-secondary:hover { background: var(--border); color: var(--text-base); }
.dp-btn-fav  { background: var(--bg-hover); color: var(--fav-col); border: 1.5px solid rgba(var(--fav-col), .3); }
.dp-btn-fav.active { background: rgba(var(--fav-col), .12); }
.dp-btn-vcf  { background: var(--bg-hover); color: var(--text-muted); border: 1.5px solid var(--border); }
.dp-btn-ghost { background: transparent; color: var(--text-label); border: 1.5px solid var(--border); }
.dp-btn-ghost:hover { background: var(--bg-hover); color: var(--text-base); }

.dp-rec-grid { display: flex; flex-direction: column; gap: 4px; }
.dp-rec-item {
  display: flex; align-items: center; gap: 8px; padding: .32rem .4rem;
  border-radius: 8px; cursor: pointer; transition: background .15s;
}
.dp-rec-item:hover { background: var(--bg-hover); }
.dp-rec-av {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: .68rem; font-weight: 600; color: var(--accent);
}
.dp-rec-name { font-size: .75rem; font-weight: 600; color: var(--text-base); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-rec-city { font-size: .67rem; color: var(--text-label); }

/* ─────────────────────────────────────────────────────
   MAP VIEW
───────────────────────────────────────────────────── */
#map-com-strip {
  display: flex; overflow-x: auto; flex-shrink: 0;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 0 .5rem; gap: 2px; height: 38px; align-items: stretch;
}
.map-com-tab {
  display: flex; align-items: center; gap: 5px; padding: 0 .75rem;
  border: none; background: transparent; border-bottom: 2px solid transparent;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .74rem; font-weight: 600;
  color: var(--text-label); cursor: pointer; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.map-com-tab:hover  { color: var(--text-base); }
.map-com-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

#map-container { flex: 1; position: relative; overflow: hidden; }
#leaflet-map   { width: 100%; height: 100%; isolation: isolate; }

#map-search-wrap {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 99px; padding: .3rem .3rem .3rem .85rem;
  box-shadow: var(--sh-md); min-width: 240px; max-width: 340px;
}
#map-search-icon { color: var(--text-label); flex-shrink: 0; }
#map-search-input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .82rem;
  color: var(--text-base); min-width: 0;
}
#map-search-count { font-size: .7rem; font-weight: 700; color: var(--text-label); white-space: nowrap; }
#map-search-clear { background: transparent; border: none; cursor: pointer; color: var(--text-label); display: flex; align-items: center; }

#map-geo-banner {
  display: none; position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 10; background: color-mix(in srgb, var(--geo-text) 12%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--geo-text) 25%, transparent);
  border-radius: 99px; padding: .3rem .85rem; font-size: .76rem; font-weight: 700;
  color: var(--geo-text); display: flex; align-items: center; gap: 6px; box-shadow: var(--sh-sm);
}

#map-draw-toolbar { position: absolute; top: 10px; right: 10px; z-index: 10; }
.map-tool-btn {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  color: var(--text-muted); cursor: pointer; box-shadow: var(--sh-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.map-tool-btn:hover, .map-tool-btn.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(var(--accent-rgb),.3); }

#map-area-banner {
  display: none; position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
  z-index: 10; background: var(--bg-card); border: 1.5px solid var(--accent);
  border-radius: 99px; padding: .3rem .75rem; font-size: .76rem; font-weight: 700;
  color: var(--accent); box-shadow: var(--sh-sm); white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}
#btn-clear-area { background: transparent; border: none; cursor: pointer; color: var(--accent); display: flex; align-items: center; }

#map-empty {
  display: none; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); z-index: 5;
  text-align: center; pointer-events: none;
}

.user-pin     { position: relative; width: 22px; height: 22px; }
.user-pin-dot { position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.user-pin-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--accent); opacity: .5;
  animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping { 75%,100% { transform: scale(2); opacity: 0; } }

/* ─────────────────────────────────────────────────────
   STATS VIEW
───────────────────────────────────────────────────── */
#view-stats { padding: 1.25rem; flex-direction: column; gap: 1rem; }
.stats-page-title { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; }
.stats-page-sub   { font-size: .8rem; color: var(--text-label); margin-top: 3px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: .75rem; }
.kpi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; text-align: center; box-shadow: var(--sh-sm); }
.kpi-number { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.kpi-label  { font-size: .72rem; color: var(--text-label); font-weight: 600; margin-top: .35rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: .75rem; }
.stats-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem; box-shadow: var(--sh-sm); }
.stats-card-title { font-size: .78rem; font-weight: 700; color: var(--text-muted); margin-bottom: .85rem; }

.bar-row   { display: flex; align-items: center; gap: 8px; padding: .2rem 0; }
.bar-label { font-size: .74rem; color: var(--text-muted); min-width: 120px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; height: 8px; background: var(--bg-hover); border-radius: 4px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 4px; transition: width .4s; }
.bar-val   { font-size: .72rem; font-weight: 700; color: var(--text-muted); min-width: 24px; text-align: right; }

.donut-wrap   { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.donut-legend { display: flex; flex-direction: column; gap: .35rem; }
.donut-leg-row { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--text-muted); }
.donut-dot    { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.pct-row  { display: flex; align-items: center; gap: 8px; padding: .2rem 0; }
.pct-label{ font-size: .74rem; color: var(--text-muted); min-width: 100px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pct-bar  { flex: 1; height: 8px; background: var(--bg-hover); border-radius: 4px; overflow: hidden; }
.pct-fill { height: 100%; border-radius: 4px; transition: width .4s; }
.pct-val  { font-size: .72rem; font-weight: 700; color: var(--text-muted); min-width: 36px; text-align: right; }

/* ─────────────────────────────────────────────────────
   NOVEDADES VIEW
───────────────────────────────────────────────────── */
#novedades-wrap { padding: 1.25rem; max-width: 700px; margin: 0 auto; width: 100%; }
.nov-page-header { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.5rem; }
.nov-page-icon   { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nov-page-title  { font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 600; }
.nov-page-sub    { font-size: .78rem; color: var(--text-label); margin-top: 3px; }
.nov-loading     { display: flex; align-items: center; gap: .75rem; padding: 4rem; color: var(--text-label); font-size: .85rem; }
.nov-feed        { display: flex; flex-direction: column; gap: .65rem; }
.nov-item        { display: flex; gap: .85rem; padding: .85rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--sh-sm); }
.nov-item[data-club-id]:hover { box-shadow: var(--sh-md); cursor: pointer; }
.nov-type-dot    { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.nov-item-body   { flex: 1; min-width: 0; }
.nov-item-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; flex-wrap: wrap; }
.nov-badge       { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: .68rem; font-weight: 700; }
.nov-date        { font-size: .7rem; color: var(--text-label); }
.nov-item-title  { font-family: 'Fraunces', serif; font-size: .92rem; font-weight: 600; color: var(--text-base); }
.nov-item-desc   { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; line-height: 1.55; }
.nov-club-chip   { display: inline-flex; align-items: center; gap: 5px; padding: .22rem .6rem; background: var(--bg-hover); border-radius: 8px; font-size: .74rem; color: var(--text-muted); margin-top: .45rem; border: 1px solid var(--border); }
.nov-container   {}

/* ─────────────────────────────────────────────────────
   ALTA VIEW
───────────────────────────────────────────────────── */
#alta-wrap { padding: 1.25rem; max-width: 560px; margin: 0 auto; width: 100%; }
.alta-container {}
.alta-header { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.alta-icon   { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.alta-title  { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 600; }
.alta-subtitle { font-size: .8rem; color: var(--text-label); margin-top: 4px; line-height: 1.5; }
.alta-form { display: flex; flex-direction: column; gap: .75rem; }
.alta-field { display: flex; flex-direction: column; gap: .3rem; }
.alta-label { font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.alta-req   { color: var(--accent); margin-left: 3px; }
.alta-input {
  padding: .46rem .75rem; background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: 9px; color: var(--text-base); font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .84rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.alta-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.13); }
.alta-input.alta-error { border-color: #e06c75; }
.alta-hint  { font-size: .72rem; color: var(--text-label); line-height: 1.5; }
.alta-privacy { display: flex; align-items: flex-start; gap: 7px; padding: .6rem .75rem; background: var(--bg-hover); border-radius: 9px; font-size: .74rem; color: var(--text-muted); margin-top: .25rem; }
.alta-submit {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: .55rem 1.1rem; background: var(--accent); color: white; border: none;
  border-radius: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .84rem; font-weight: 700;
  cursor: pointer; transition: background .18s; box-shadow: 0 2px 8px rgba(var(--accent-rgb),.25);
}
.alta-submit:hover { background: var(--accent-hover); }
.alta-note { font-size: .72rem; color: var(--text-label); text-align: center; margin-top: .35rem; }

/* ─────────────────────────────────────────────────────
   REVISION VIEW
───────────────────────────────────────────────────── */
.rev-wrap { padding: 1.25rem; max-width: 820px; margin: 0 auto; width: 100%; }
.rev-kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.rev-kpi     { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--sh-sm); }
.rev-kpi-num { font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 700; line-height: 1; }
.rev-kpi-lbl { font-size: .72rem; color: var(--text-label); margin-top: 3px; font-weight: 600; }
.rev-kpi.ok   .rev-kpi-num { color: #3a7020; }
.rev-kpi.warn .rev-kpi-num { color: #e07820; }

.rev-filter-bar   { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1rem; }
.rev-search-wrap  { position: relative; display: flex; align-items: center; }
.rev-search-wrap svg { position: absolute; left: 9px; pointer-events: none; color: var(--text-label); }
.rev-search-input { width: 100%; padding: .46rem .75rem .46rem 2rem; background: var(--bg-input); border: 1.5px solid var(--border); border-radius: 9px; color: var(--text-base); font-family: 'Plus Jakarta Sans', sans-serif; font-size: .84rem; outline: none; }
.rev-filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.rev-chip   { display: inline-flex; align-items: center; padding: .28rem .7rem; border-radius: 99px; border: 1.5px solid var(--border); font-size: .73rem; font-weight: 700; color: var(--text-label); background: var(--bg-hover); cursor: pointer; transition: all .15s; }
.rev-chip.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(var(--accent-rgb),.3); }

.rev-section-hdr { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--text-label); margin-bottom: .65rem; padding: .35rem 0; border-bottom: 1px solid var(--border-light); }
.rev-club-row    { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: .5rem; cursor: pointer; transition: box-shadow .18s; }
.rev-club-row:hover { box-shadow: var(--sh-md); }
.rev-avatar      { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; flex-shrink: 0; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: .82rem; font-weight: 600; color: var(--accent); }
.rev-avatar img  { width: 100%; height: 100%; object-fit: cover; }
.rev-club-name   { font-size: .84rem; font-weight: 700; color: var(--text-base); }
.rev-club-city   { font-size: .73rem; color: var(--text-label); margin-top: 2px; }
.rev-missing-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .4rem; }
.rev-missing-tag  { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 99px; font-size: .67rem; font-weight: 700; background: #fff3e0; color: #e07820; border: 1px solid #f0c080; }
html.dark .rev-missing-tag { background: #2a1c04; border-color: #5a3800; }
.rev-mod-btn { display: flex; align-items: center; gap: 5px; margin-left: auto; flex-shrink: 0; padding: .35rem .65rem; background: var(--bg-hover); border: 1.5px solid var(--border); border-radius: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .73rem; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: all .15s; white-space: nowrap; }
.rev-mod-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: rgba(var(--accent-rgb),.3); }

/* Mod popup */
#mod-panel     { background: var(--bg-card); border-radius: 16px; max-width: 560px; margin: 0 auto; overflow: hidden; }
#mod-header    { display: flex; align-items: flex-start; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
#mod-title     { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 600; }
#mod-subtitle  { font-size: .75rem; color: var(--text-label); margin-top: 3px; }
#mod-close     { background: transparent; border: none; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; }
#mod-body      { padding: 1rem 1.25rem; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: .75rem; }
.mod-fields    { display: flex; flex-direction: column; gap: .85rem; }
.mod-field-group  {}
.mod-field-current { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: .3rem; }
.mod-field-label { font-size: .72rem; font-weight: 700; color: var(--text-label); min-width: 80px; }
.mod-field-val   { font-size: .77rem; color: var(--text-muted); text-align: right; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mod-input     { width: 100%; padding: .4rem .65rem; background: var(--bg-input); border: 1.5px solid var(--border); border-radius: 8px; color: var(--text-base); font-family: 'Plus Jakarta Sans', sans-serif; font-size: .8rem; outline: none; }
.mod-hint      { font-size: .7rem; color: var(--text-label); margin-top: .2rem; line-height: 1.4; }
.mod-logo-preview { height: 36px; border-radius: 7px; object-fit: cover; border: 1px solid var(--border); }
#mod-footer    { display: flex; justify-content: flex-end; gap: .5rem; padding: .85rem 1.25rem; border-top: 1px solid var(--border); }
#mod-cancel    { padding: .4rem .85rem; background: var(--bg-hover); border: 1.5px solid var(--border); border-radius: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .8rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: background .15s; }
#mod-send      { display: flex; align-items: center; gap: 5px; padding: .4rem .85rem; background: var(--accent); color: white; border: none; border-radius: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .8rem; font-weight: 700; cursor: pointer; transition: background .15s; }
#mod-send:hover { background: var(--accent-hover); }

/* ─────────────────────────────────────────────────────
   FICHA OVERLAY
───────────────────────────────────────────────────── */
#ficha-overlay { position: fixed; inset: 0; z-index: 500; background: var(--bg-base); display: none; flex-direction: column; overflow: hidden; }
#ficha-overlay.open { display: flex; }
#ficha-panel   { display: flex; flex-direction: column; height: 100%; max-width: 760px; width: 100%; margin: 0 auto; }
#ficha-topbar  { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--bg-card); flex-shrink: 0; }
#ficha-back    { display: flex; align-items: center; gap: 5px; background: transparent; border: none; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .8rem; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: color .15s; }
#ficha-back:hover { color: var(--accent); }
#ficha-breadcrumb { font-size: .75rem; color: var(--text-label); }
#ficha-share-btn  { display: flex; align-items: center; gap: 5px; background: var(--bg-hover); border: 1.5px solid var(--border); border-radius: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .75rem; font-weight: 700; color: var(--text-muted); cursor: pointer; padding: .3rem .65rem; transition: all .15s; }
#ficha-share-btn:hover { background: var(--accent-soft); color: var(--accent); }
#ficha-body    { flex: 1; overflow-y: auto; padding: 1.5rem 1.25rem; }
#ficha-hero    { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.5rem; }
#ficha-logo-wrap {}
#ficha-logo    { width: 80px; height: 80px; border-radius: 16px; overflow: hidden; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; color: var(--accent); border: 2px solid var(--border); flex-shrink: 0; }
#ficha-logo img { width: 100%; height: 100%; object-fit: cover; }
#ficha-nombre  { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: var(--text-base); line-height: 1.2; }
#ficha-badges-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: .5rem; }
#ficha-contact-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.ficha-contact-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: .3rem .7rem;
  background: var(--bg-hover); border: 1px solid var(--border); border-radius: 99px;
  font-size: .75rem; font-weight: 600; color: var(--text-muted); text-decoration: none;
  transition: all .15s;
}
.ficha-contact-chip:hover { background: var(--accent-soft); color: var(--accent); border-color: rgba(var(--accent-rgb),.3); }
.ficha-contact-chip.ig { background: linear-gradient(135deg, rgba(249,168,37,.1), rgba(233,30,140,.1), rgba(106,17,203,.1)); color: #c87cc0; }
#ficha-sections { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.ficha-sec { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: .85rem 1rem; }
.ficha-sec-title { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-label); margin-bottom: .4rem; }
.ficha-sec-text  { font-size: .82rem; color: var(--text-muted); line-height: 1.55; }
#ficha-map-wrap { height: 220px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 1rem; }
#ficha-minimap  { width: 100%; height: 100%; isolation: isolate; }
.ficha-action-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.ficha-action-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: .45rem .85rem;
  border-radius: 9px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .8rem; font-weight: 700; cursor: pointer; text-decoration: none;
  border: none; transition: all .18s;
}
.ficha-action-btn.primary { background: var(--accent); color: white; box-shadow: 0 2px 8px rgba(var(--accent-rgb),.25); }
.ficha-action-btn.primary:hover { background: var(--accent-hover); }
.ficha-action-btn.secondary { background: var(--bg-hover); color: var(--text-muted); border: 1.5px solid var(--border); }
.ficha-action-btn.secondary:hover { background: var(--border); color: var(--text-base); }
.ficha-action-btn.ig { background: linear-gradient(135deg,#f9a825,#e91e8c,#6a11cb); color: white; }

/* ─────────────────────────────────────────────────────
   COMPARE BAR & OVERLAY
───────────────────────────────────────────────────── */
#compare-bar {
  position: fixed; bottom: -90px; left: 50%; transform: translateX(-50%);
  z-index: 300; background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 16px; box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem;
  transition: bottom .3s cubic-bezier(.4,0,.2,1); white-space: nowrap;
  max-width: 90vw;
}
#compare-bar.visible { bottom: 1.25rem; }
#compare-bar-slots  { display: flex; gap: .45rem; }
.cmp-slot           { display: flex; align-items: center; gap: 5px; padding: .28rem .55rem; background: var(--bg-hover); border-radius: 8px; border: 1px solid var(--border); }
.cmp-slot-ini       { width: 22px; height: 22px; border-radius: 5px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: .6rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.cmp-slot-name      { font-size: .72rem; font-weight: 600; color: var(--text-base); max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
.cmp-slot-rm        { background: transparent; border: none; cursor: pointer; color: var(--text-label); font-size: .72rem; padding: 0 2px; }
#compare-bar-hint   { font-size: .75rem; color: var(--text-label); }
#compare-go-btn, #compare-clear-btn {
  display: flex; align-items: center; gap: 5px; padding: .38rem .7rem;
  border-radius: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .77rem; font-weight: 700; cursor: pointer; transition: all .15s;
}
#compare-go-btn     { background: var(--accent); color: white; border: none; box-shadow: 0 2px 6px rgba(var(--accent-rgb),.25); }
#compare-go-btn:disabled { opacity: .5; cursor: default; }
#compare-go-btn:not(:disabled):hover { background: var(--accent-hover); }
#compare-clear-btn  { background: var(--bg-hover); border: 1.5px solid var(--border); color: var(--text-muted); }
#compare-clear-btn:hover { background: var(--border); }

#compare-overlay    { position: fixed; inset: 0; z-index: 500; background: var(--bg-base); display: none; flex-direction: column; overflow: hidden; }
#compare-overlay.open { display: flex; }
#compare-topbar     { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--bg-card); flex-shrink: 0; }
#compare-back       { display: flex; align-items: center; gap: 5px; background: transparent; border: none; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .8rem; font-weight: 700; color: var(--text-muted); cursor: pointer; }
#compare-back:hover { color: var(--accent); }
#compare-title      { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 600; }
#compare-table-wrap { flex: 1; overflow: auto; padding: 1rem; }
.cmp-table          { width: 100%; border-collapse: collapse; }
.cmp-col-hdr        { padding: .65rem .85rem; background: var(--bg-card); position: sticky; top: 0; z-index: 2; font-family: 'Fraunces', serif; font-size: .88rem; font-weight: 600; border-bottom: 2px solid var(--border); min-width: 160px; }
.cmp-row-label      { padding: .5rem .85rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-label); background: var(--bg-hover); white-space: nowrap; }
.cmp-cell           { padding: .5rem .85rem; font-size: .8rem; color: var(--text-muted); border-bottom: 1px solid var(--border-light); }
.cmp-cell a         { color: var(--accent2); text-decoration: none; }
.cmp-cell a:hover   { text-decoration: underline; }

/* ─────────────────────────────────────────────────────
   INFO CLUB OVERLAY ("Acerca de")
───────────────────────────────────────────────────── */
#info-club-overlay {
  position: fixed; inset: 0; z-index: 550;
  background: rgba(0,0,0,.52); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
#info-club-overlay.open { opacity: 1; pointer-events: auto; }
#info-club-panel {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--sh-lg); width: 100%; max-width: 640px;
  max-height: calc(100vh - 2rem); display: flex; flex-direction: column; overflow: hidden;
  animation: icpIn .26s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes icpIn { from { opacity: 0; transform: scale(.93) translateY(10px); } to { opacity: 1; transform: none; } }
#info-club-header { flex-shrink: 0; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border-light); display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
#info-club-title  { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#info-club-subtitle { font-size: .75rem; color: var(--text-label); margin-top: 3px; }
#info-club-close  { width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .18s; }
#info-club-close:hover { background: var(--bg-hover); color: var(--text-base); }
#info-club-body   { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.info-loading { display: flex; align-items: center; gap: .75rem; padding: 2.5rem; color: var(--text-label); font-size: .85rem; }
.info-empty   { text-align: center; padding: 2.5rem 1rem; color: var(--text-label); font-size: .82rem; line-height: 1.6; }
.info-empty code { font-family: monospace; font-size: .8rem; background: var(--accent-soft); color: var(--accent); padding: 2px 6px; border-radius: 4px; }
.info-md-content { font-size: .87rem; line-height: 1.75; color: var(--text-base); }
.info-md-content h1 { font-family: 'Fraunces', serif; font-size: 1.45rem; font-weight: 600; margin: 0 0 .85rem; border-bottom: 2px solid var(--border); padding-bottom: .5rem; }
.info-md-content h2 { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 600; margin: 1.4rem 0 .55rem; }
.info-md-content h3 { font-size: .95rem; font-weight: 700; margin: 1.1rem 0 .45rem; color: var(--text-muted); }
.info-md-content p  { margin: .6rem 0; color: var(--text-muted); }
.info-md-content strong { font-weight: 700; color: var(--text-base); }
.info-md-content a  { color: var(--accent2); text-decoration: none; }
.info-md-content a:hover { text-decoration: underline; }
.info-md-content ul, .info-md-content ol { padding-left: 1.4rem; margin: .6rem 0; display: flex; flex-direction: column; gap: .3rem; }
.info-md-content li { color: var(--text-muted); }
.info-md-content code { font-family: monospace; font-size: .82rem; background: var(--accent-soft); color: var(--accent); padding: 2px 6px; border-radius: 5px; }
.info-md-content pre { background: var(--bg-hover); border: 1px solid var(--border); border-radius: 10px; padding: .9rem 1.1rem; overflow-x: auto; margin: .75rem 0; }
.info-md-content pre code { background: transparent; color: var(--text-base); padding: 0; }
.info-md-content blockquote { border-left: 3px solid var(--accent); padding: .4rem 1rem; margin: .75rem 0; background: var(--accent-soft); border-radius: 0 8px 8px 0; color: var(--text-muted); font-style: italic; }
.info-md-content hr { border: none; border-top: 1px solid var(--border); margin: 1.1rem 0; }

/* ─────────────────────────────────────────────────────
   VALORACIONES
───────────────────────────────────────────────────── */
#dp-val-section { padding: .9rem 1.25rem; border-top: 1px solid var(--border-light); }
.val-widget { display: flex; flex-direction: column; gap: .6rem; }
.val-loading { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; color: var(--text-label); font-size: .78rem; }
.val-title   { display: flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-label); }
.val-summary { display: flex; align-items: center; gap: .5rem; }
.val-stars-display { display: flex; gap: 1px; }
.val-media   { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 600; color: var(--fav-col); }
.val-votos   { font-size: .72rem; color: var(--text-label); }
.val-no-votes { font-size: .78rem; color: var(--text-label); margin: 0; }
.val-vote-section { display: flex; flex-direction: column; gap: .4rem; }
.val-vote-prompt  { font-size: .76rem; color: var(--text-muted); font-weight: 500; }
.val-stars-input  { display: flex; gap: 2px; }
.val-star-btn { background: transparent; border: none; cursor: pointer; padding: 3px; transition: transform .15s; display: flex; align-items: center; }
.val-star-btn:hover { transform: scale(1.2); }
.val-ya-voto  { display: flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--text-muted); }

/* ── Mini badge de valoración en tarjetas ───────────── */
.card-rating { min-height: 0; margin-top: .3rem; }
.card-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-soft);
  border-radius: 20px;
  padding: 2px 8px 2px 5px;
  font-size: .72rem;
}
.card-rating-stars { gap: 1px; }
.card-rating-score { font-weight: 700; color: var(--fav-col); font-size: .78rem; }
.card-rating-votos { color: var(--text-label); font-size: .68rem; }

/* ── Sección valoraciones en ficha pública ──────────── */
#ficha-val-container {
  margin: 1rem 1.5rem 0;
  padding: 1rem 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* ─────────────────────────────────────────────────────
   SETTINGS PANEL
───────────────────────────────────────────────────── */
#settings-backdrop {
  position: fixed; inset: 0; z-index: 599;
  background: rgba(0,0,0,.4); display: none;
}
#settings-backdrop.open { display: block; }

#settings-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 600;
  width: min(94vw, 320px); background: var(--bg-card);
  border-left: 1px solid var(--border); display: flex; flex-direction: column;
  box-shadow: var(--sh-lg);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
#settings-panel.open { transform: translateX(0); }

#sp-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); flex-shrink: 0; }
#sp-title  { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 600; }
.sp-close  { width: 28px; height: 28px; border-radius: 7px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sp-close:hover { background: var(--bg-hover); }

#sp-body { flex: 1; overflow-y: auto; padding: .75rem; }
.sp-section { background: var(--bg-hover); border-radius: 12px; padding: .85rem; margin-bottom: .65rem; }
.sp-section-title { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-label); margin-bottom: .75rem; }
.sp-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); margin-bottom: .35rem; }
.sp-hint  { font-size: .68rem; color: var(--text-label); }
.sp-row   { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }

.color-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.color-swatch { width: 100%; aspect-ratio: 1; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active { border-color: white; box-shadow: 0 0 0 2px var(--accent); }

.seg-ctrl { display: flex; border: 1.5px solid var(--border); border-radius: 9px; overflow: hidden; }
.seg-btn  { flex: 1; padding: .35rem .3rem; background: var(--bg-hover); border: none; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .73rem; font-weight: 700; color: var(--text-label); cursor: pointer; transition: all .15s; }
.seg-btn.active { background: var(--accent); color: white; }

.sp-toggle {
  width: 36px; height: 20px; border-radius: 99px; flex-shrink: 0;
  background: var(--border); cursor: pointer; position: relative; transition: background .2s;
}
.sp-toggle.on { background: var(--accent); }
.sp-toggle::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: white; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sp-toggle.on::after { transform: translateX(16px); }

.sp-select { width: 100%; padding: .38rem .6rem; background: var(--bg-input); border: 1.5px solid var(--border); border-radius: 8px; color: var(--text-base); font-family: 'Plus Jakarta Sans', sans-serif; font-size: .8rem; outline: none; }

.btn-sp-reset { display: flex; align-items: center; gap: 6px; width: 100%; padding: .42rem .7rem; background: var(--bg-hover); border: 1.5px solid var(--border); border-radius: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .76rem; font-weight: 600; color: var(--text-label); cursor: pointer; transition: all .18s; }
.btn-sp-reset:hover { background: var(--border); color: var(--text-base); }

/* ─────────────────────────────────────────────────────
   EVENTOS VIEW
───────────────────────────────────────────────────── */
#eventos-wrap { padding: 1.25rem; max-width: 820px; margin: 0 auto; width: 100%; }
.evnt-header     { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.evnt-header-icon{ width: 50px; height: 50px; border-radius: 13px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.evnt-title      { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; }
.evnt-subtitle   { font-size: .78rem; color: var(--text-label); margin-top: 2px; }
.evnt-legend     { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.evnt-legend-item{ display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 600; }
.evnt-toolbar    { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: .85rem; }
.evnt-search-wrap{ flex: 1; min-width: 200px; position: relative; display: flex; align-items: center; }
.evnt-search-wrap svg { position: absolute; left: 9px; pointer-events: none; color: var(--text-label); }
.evnt-search-input { width: 100%; padding: .46rem .75rem .46rem 2rem; background: var(--bg-input); border: 1.5px solid var(--border); border-radius: 9px; color: var(--text-base); font-family: 'Plus Jakarta Sans', sans-serif; font-size: .85rem; outline: none; }
.evnt-search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.13); }
.evnt-filters    { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.evnt-select     { padding: .38rem .65rem; background: var(--bg-input); border: 1.5px solid var(--border); border-radius: 9px; color: var(--text-base); font-family: 'Plus Jakarta Sans', sans-serif; font-size: .8rem; outline: none; cursor: pointer; }
.evnt-past-label { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-muted); cursor: pointer; user-select: none; }
.evnt-count      { font-size: .75rem; color: var(--text-label); margin-bottom: .65rem; font-weight: 500; }
.evnt-month-hdr  { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-label); margin: 1.25rem 0 .65rem; display: flex; align-items: center; gap: 8px; }
.evnt-month-hdr::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
.evnt-list       { display: flex; flex-direction: column; gap: .65rem; }
.evnt-card       { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; display: flex; gap: 1rem; box-shadow: var(--sh-sm); transition: box-shadow .22s, border-color .22s; }
.evnt-card:hover { box-shadow: var(--sh-md); border-color: rgba(var(--accent-rgb),.35); }
.evnt-card.evnt-pasado { opacity: .55; }
.evnt-date-col   { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 46px; background: var(--accent-soft); border-radius: 10px; padding: .5rem .3rem; flex-shrink: 0; }
.evnt-day        { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.evnt-month-sm   { font-size: .65rem; font-weight: 700; text-transform: uppercase; color: var(--accent); letter-spacing: .06em; margin-top: 1px; }
.evnt-card-body  { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .45rem; }
.evnt-card-top   { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.evnt-tipo-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: .69rem; font-weight: 700; }
.evnt-badge-urg  { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: .68rem; font-weight: 700; }
.evnt-badge-urg.hoy    { background: #fff0f0; color: #e06c75; border: 1px solid #f0b0b0; }
.evnt-badge-urg.manana { background: #fff3e0; color: #e07820; border: 1px solid #f0c080; }
.evnt-badge-urg.pronto { background: #e8f5e0; color: #3a7020; border: 1px solid #b5d98a; }
.evnt-badge-past { background: var(--bg-hover); color: var(--text-label); font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
html.dark .evnt-badge-urg.hoy    { background: #3a0d12; }
html.dark .evnt-badge-urg.manana { background: #2a1c04; }
html.dark .evnt-badge-urg.pronto { background: #1c2e14; }
.evnt-card-title { font-family: 'Fraunces', serif; font-size: .98rem; font-weight: 600; color: var(--text-base); line-height: 1.3; }
.evnt-card-meta  { display: flex; flex-wrap: wrap; gap: .3rem .85rem; }
.evnt-card-meta span { display: flex; align-items: center; gap: 4px; font-size: .74rem; color: var(--text-muted); }
.evnt-desc       { font-size: .78rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
.evnt-card-footer{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.evnt-club-chip  { display: inline-flex; align-items: center; gap: 5px; padding: .25rem .6rem; background: var(--bg-hover); border-radius: 8px; font-size: .73rem; color: var(--text-muted); border: 1px solid var(--border); }
.evnt-btn-more   { display: inline-flex; align-items: center; gap: 4px; padding: .32rem .7rem; border-radius: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .74rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(var(--accent-rgb),.25); text-decoration: none; transition: all .18s; }
.evnt-btn-more:hover { background: var(--accent); color: white; }
.evnt-empty      { text-align: center; padding: 3rem 1rem; color: var(--text-label); font-size: .84rem; }

/* ── Cartel del evento (thumbnail en tarjeta) ───────── */
.evnt-cartel-wrap {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: .25rem;
}
.evnt-cartel-thumb {
  width: 90px;
  height: 126px;          /* proporción A4 cartel: 2:3 */
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .18s, box-shadow .18s;
  box-shadow: var(--sh-sm);
}
.evnt-cartel-thumb:hover {
  transform: scale(1.04);
  box-shadow: var(--sh-md);
}
.evnt-cartel-hint {
  font-size: .69rem;
  color: var(--text-label);
  margin-top: .35rem;
  display: block;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

/* ── Lightbox de cartel ──────────────────────────────── */
#cartel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
  backdrop-filter: blur(4px);
}
#cartel-lightbox.show {
  opacity: 1;
  pointer-events: all;
}
#cartel-lightbox-inner {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  max-width: min(520px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  transform: scale(.94);
  transition: transform .22s;
}
#cartel-lightbox.show #cartel-lightbox-inner {
  transform: scale(1);
}
#cartel-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem .6rem;
  border-bottom: 1px solid var(--border);
  gap: .75rem;
  flex-shrink: 0;
}
#cartel-lightbox-title {
  font-family: 'Fraunces', serif;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#cartel-lightbox-close {
  background: var(--bg-hover);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-label);
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
#cartel-lightbox-close:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
#cartel-lightbox-body {
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem;
}
#cartel-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 70px);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: var(--sh-md);
}
@media (max-width: 600px) {
  #cartel-lightbox-inner { max-width: 98vw; max-height: 95vh; border-radius: 12px; }
  .evnt-cartel-thumb { width: 72px; height: 101px; }
}

/* ─────────────────────────────────────────────────────
   EMPLOYMENT PANELS (entrenadoras + ofertas)
───────────────────────────────────────────────────── */
#emp-entr-panel-wrap,
#emp-ofer-panel-wrap {
  position: fixed; inset: 0; z-index: 600;
  display: flex; justify-content: flex-end;
  opacity: 0; pointer-events: none; transition: opacity .28s;
}
#emp-entr-panel-wrap.open,
#emp-ofer-panel-wrap.open { opacity: 1; pointer-events: auto; }

.emp-panel-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.48); backdrop-filter: blur(3px); }
.emp-panel {
  position: relative; width: min(96vw, 540px); height: 100%;
  background: var(--bg-card); border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0,0,0,.18); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); overflow: hidden;
}
#emp-entr-panel-wrap.open .emp-panel,
#emp-ofer-panel-wrap.open .emp-panel { transform: translateX(0); }

.emp-panel-header  { flex-shrink: 0; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.emp-panel-header-title { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; }
.emp-panel-close   { width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .18s; }
.emp-panel-close:hover { background: var(--bg-hover); }
.emp-panel-body    { flex: 1; overflow-y: auto; padding: .85rem 1rem; }
.emp-panel-loading,
.emp-panel-empty   { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65rem; padding: 3rem 1rem; color: var(--text-label); font-size: .84rem; text-align: center; }
.emp-panel-loading { flex-direction: row; }
.emp-panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: 1rem; flex-wrap: wrap; }
.emp-panel-toolbar-title { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--text-muted); }

/* Generic popup */
#emp-generic-popup {
  position: fixed; inset: 0; z-index: 700;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
#emp-generic-popup.open { opacity: 1; pointer-events: auto; }
.emp-popup-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.52); backdrop-filter: blur(4px); }
.emp-popup-panel {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--sh-lg); width: 100%; max-width: 520px;
  max-height: calc(100vh - 2rem); display: flex; flex-direction: column; overflow: hidden;
  animation: empPopIn .24s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes empPopIn { from { opacity: 0; transform: scale(.93) translateY(10px); } to { opacity: 1; transform: none; } }
.emp-popup-header  { flex-shrink: 0; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light); display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.emp-popup-title   { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.emp-popup-subtitle{ font-size: .74rem; color: var(--text-label); margin-top: 3px; }
.emp-popup-close   { width: 28px; height: 28px; border-radius: 7px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .18s; }
.emp-popup-close:hover { background: var(--bg-hover); }
.emp-popup-body    { flex: 1; overflow-y: auto; padding: .75rem .85rem 1rem; }
.emp-popup-empty   { padding: 2rem 1rem; text-align: center; color: var(--text-label); font-size: .84rem; line-height: 1.6; }
.emp-popup-list    { display: flex; flex-direction: column; gap: .7rem; }

.emp-pop-offer-card,
.emp-pop-cand-card  { background: var(--bg-hover); border: 1px solid var(--border); border-radius: 12px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .55rem; }
.emp-pop-offer-header,
.emp-pop-cand-top   { display: flex; align-items: center; gap: .75rem; }
.emp-pop-club-logo  { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; border: 1.5px solid var(--border); flex-shrink: 0; }
.emp-pop-club-logo-ph { width: 36px; height: 36px; border-radius: 8px; background: var(--accent-soft); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: .78rem; font-weight: 600; color: var(--accent); flex-shrink: 0; }
.emp-pop-club-name,
.emp-pop-cand-nombre { font-size: .84rem; font-weight: 700; color: var(--text-base); }
.emp-pop-club-city,
.emp-pop-cand-ciudad { font-size: .72rem; color: var(--text-label); }
.emp-pop-puesto     { font-family: 'Fraunces', serif; font-size: .92rem; font-weight: 600; color: var(--text-base); }
.emp-pop-meta       { display: flex; flex-wrap: wrap; gap: .3rem .75rem; font-size: .74rem; color: var(--text-muted); }
.emp-pop-contact-btn { display: inline-flex; align-items: center; gap: 5px; padding: .32rem .7rem; border-radius: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .74rem; font-weight: 700; background: var(--accent); color: white; border: none; text-decoration: none; transition: all .18s; width: fit-content; }
.emp-pop-cand-desc  { font-size: .78rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
.emp-pop-cand-actions { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Shared form elements */
.emp-form { display: flex; flex-direction: column; gap: .8rem; }
.emp-form-row { display: flex; flex-direction: column; gap: .3rem; }
.emp-form-label { font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.emp-req { color: var(--accent); margin-left: 3px; }
.emp-req-opt { font-weight: 400; color: var(--text-label); font-size: .72rem; }
.emp-input { padding: .46rem .75rem; background: var(--bg-input); border: 1.5px solid var(--border); border-radius: 9px; color: var(--text-base); font-family: 'Plus Jakarta Sans', sans-serif; font-size: .84rem; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.emp-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.13); }
.emp-input::placeholder { color: var(--text-label); }
.emp-textarea { resize: vertical; min-height: 70px; font-family: 'Plus Jakarta Sans', sans-serif; }
.emp-select { cursor: pointer; }
.emp-form-hint { font-size: .72rem; color: var(--text-label); line-height: 1.5; }
.emp-form-error { font-size: .78rem; font-weight: 600; color: #e06c75; background: #fff0f0; border-radius: 8px; padding: .4rem .7rem; border: 1px solid #f0b0b0; }
html.dark .emp-form-error { background: #3a0d12; }
.emp-form-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .3rem; }
.emp-btn-primary  { display: inline-flex; align-items: center; gap: 5px; padding: .4rem .85rem; border-radius: 9px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .78rem; font-weight: 700; background: var(--accent); color: white; border: none; cursor: pointer; transition: all .18s; box-shadow: 0 2px 8px rgba(var(--accent-rgb),.25); }
.emp-btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.emp-btn-secondary{ display: inline-flex; align-items: center; gap: 5px; padding: .38rem .8rem; border-radius: 9px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .78rem; font-weight: 700; background: var(--bg-hover); color: var(--text-muted); border: 1.5px solid var(--border); cursor: pointer; transition: all .18s; }
.emp-btn-secondary:hover { background: var(--border); color: var(--text-base); }

/* Entrenadoras grid */
.entr-grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.entr-card   { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.15rem; display: flex; flex-direction: column; gap: .75rem; box-shadow: var(--sh-sm); transition: box-shadow .22s, transform .22s; }
.entr-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.entr-card-top   { display: flex; align-items: flex-start; gap: .85rem; }
.entr-avatar     { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2.5px solid var(--border); background: var(--accent-soft); }
.entr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.entr-avatar-ph  { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 600; color: var(--accent); }
.entr-nombre     { font-family: 'Fraunces', serif; font-size: .95rem; font-weight: 600; color: var(--text-base); line-height: 1.3; }
.entr-ciudad     { display: flex; align-items: center; gap: 4px; font-size: .77rem; color: var(--text-label); }
.entr-desc       { font-size: .8rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.entr-actions    { display: flex; gap: .5rem; flex-wrap: wrap; }
.entr-btn-contact{ display: inline-flex; align-items: center; gap: 5px; padding: .38rem .8rem; border-radius: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .76rem; font-weight: 700; background: var(--accent); color: white; border: none; text-decoration: none; transition: all .18s; box-shadow: 0 2px 8px rgba(var(--accent-rgb),.25); }
.entr-btn-contact:hover { background: var(--accent-hover); }
.entr-btn-tel    { display: inline-flex; align-items: center; gap: 5px; padding: .38rem .8rem; border-radius: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .76rem; font-weight: 700; background: var(--bg-hover); color: var(--text-muted); border: 1.5px solid var(--border); text-decoration: none; transition: all .18s; }
.entr-btn-tel:hover { background: var(--border); color: var(--text-base); }
.entr-btn-ver-ofertas { display: inline-flex; align-items: center; gap: 5px; padding: .38rem .8rem; border-radius: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .76rem; font-weight: 700; background: var(--accent2-soft); color: var(--accent2); border: 1px solid rgba(var(--accent2),.3); cursor: pointer; transition: all .18s; }
.entr-btn-ver-ofertas:hover { background: var(--accent2); color: white; }

/* Clubs with offers list */
.ofer-clubs-list { display: flex; flex-direction: column; gap: .85rem; }
.ofer-club-card  { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-sm); }
.ofer-club-header{ display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border-light); }
.ofer-club-logo  { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; border: 1.5px solid var(--border); flex-shrink: 0; }
.ofer-club-logo-ph { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: .9rem; font-weight: 600; color: var(--accent); flex-shrink: 0; }
.ofer-club-nombre{ font-family: 'Fraunces', serif; font-size: .95rem; font-weight: 600; color: var(--text-base); }
.ofer-club-ciudad{ font-size: .74rem; color: var(--text-label); display: flex; align-items: center; gap: 3px; margin-top: 2px; }
.ofer-num-badge  { flex-shrink: 0; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(var(--accent-rgb),.2); margin-left: auto; }
.ofer-sub-list   { display: flex; flex-direction: column; }
.ofer-sub-card   { padding: .75rem 1rem; border-bottom: 1px solid var(--border-light); display: flex; flex-direction: column; gap: .45rem; }
.ofer-sub-card:last-child { border-bottom: none; }
.ofer-sub-puesto { font-family: 'Fraunces', serif; font-size: .9rem; font-weight: 600; color: var(--text-base); }
.ofer-sub-meta   { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .74rem; color: var(--text-muted); }
.emp-btn-ver-cand{ display: inline-flex; align-items: center; gap: 5px; padding: .35rem .7rem; border-radius: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .74rem; font-weight: 700; background: var(--accent2-soft); color: var(--accent2); border: 1px solid rgba(var(--accent2),.3); cursor: pointer; transition: all .18s; align-self: flex-start; }
.emp-btn-ver-cand:hover { background: var(--accent2); color: white; }

/* ─────────────────────────────────────────────────────
   TOAST NOTIFICATIONS
───────────────────────────────────────────────────── */
/* ── Toasts — F1-04: differentiated by type with icon ── */
#toast-container { position: fixed; bottom: 1.5rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: .45rem; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border-radius: 10px;
  font-size: .82rem; font-weight: 500; max-width: 320px;
  opacity: 0; transform: translateX(12px);
  transition: opacity .25s, transform .25s; pointer-events: auto;
  box-shadow: var(--sh-md);
}
.toast.show   { opacity: 1; transform: translateX(0); }
.toast-icon   { font-size: 1rem; line-height: 1; flex-shrink: 0; }
.toast-msg    { flex: 1; }
.toast-success{ background: #e8f5e0; border: 1.5px solid #8bc06a; color: #2a5a10; }
.toast-error  { background: #fff0f0; border: 1.5px solid #f0b0b0; color: #c0392b; }
.toast-info   { background: var(--accent-soft); border: 1.5px solid rgba(var(--accent-rgb),.3); color: var(--accent); }
.toast-warning{ background: #fef8ec; border: 1.5px solid #e8c080; color: #7a4800; }
html.dark .toast-success { background: #1a3010; border-color: #4a7a30; color: #8adf5a; }
html.dark .toast-error   { background: #3a0d12; border-color: #7a2020; color: #f0a0a0; }
html.dark .toast-info    { background: var(--accent-soft); }
html.dark .toast-warning { background: #2a1e00; border-color: #7a5010; color: #f0c060; }

/* F1-01: Active filter chips bar */
#active-filters-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  padding: .5rem .2rem .3rem; min-height: 0;
}
#active-filters-bar[hidden] { display: none; }
.filter-chip {
  display: inline-flex; align-items: center; gap: .25rem;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb),.25);
  border-radius: 20px; padding: .22rem .55rem .22rem .7rem;
  font-size: .73rem; font-weight: 600; white-space: nowrap;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis;
  transition: background .15s;
}
.filter-chip-x {
  background: none; border: none; cursor: pointer;
  color: var(--accent); font-size: .95rem; line-height: 1;
  padding: 0 .1rem; opacity: .65; transition: opacity .15s;
  min-width: 22px; min-height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  touch-action: manipulation;
}
.filter-chip-x:hover { opacity: 1; }
.filter-chip-reset {
  background: none; border: 1px solid var(--border); border-radius: 20px;
  color: var(--text-label); font-size: .7rem; padding: .22rem .65rem;
  cursor: pointer; transition: background .15s, color .15s; white-space: nowrap;
}
.filter-chip-reset:hover { background: var(--bg-hover); color: var(--text-base); }

/* F1-03: Inline reset in empty state */
.empty-state-hint { font-size: .8rem; color: var(--text-label); margin-top: .3rem; }
.btn-reset-inline {
  margin-top: .8rem;
  background: var(--accent); color: white;
  border: none; border-radius: 8px;
  padding: .45rem 1.15rem; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: opacity .15s; display: inline-block;
}
.btn-reset-inline:hover { opacity: .88; }

/* F1-02: Mobile filter badge */
.mobile-filter-badge {
  position: absolute; top: -5px; right: -5px;
  background: #c84040; color: white;
  font-size: .6rem; font-weight: 700; line-height: 1;
  min-width: 17px; height: 17px; border-radius: 9px;
  padding: 0 4px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-header); pointer-events: none;
}
.mobile-filter-badge[hidden] { display: none; }

/* F1-07: Minimum 44×44px touch targets on mobile */
@media (max-width: 700px) {
  #dp-close        { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; touch-action: manipulation; }
  .val-star-btn    { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; touch-action: manipulation; }
  .card-fav-btn,
  .card-cmp-btn    { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; touch-action: manipulation; }
  #geo-refresh-btn { min-width: 44px; min-height: 44px; touch-action: manipulation; }
  .leaflet-control-zoom a { min-width: 44px !important; height: 44px !important; line-height: 44px !important; }
  .cartel-lightbox-close  { min-width: 44px; min-height: 44px; }
}

/* F1-05: System-level prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .club-card   { animation: none !important; }
  .sk-shimmer  { animation: none !important; }
  .toast       { transition: opacity .1s !important; transform: none !important; }
  #cartel-lightbox,
  #cartel-lightbox-inner { transition: opacity .1s !important; transform: none !important; }
  .val-star-animated { animation: none !important; }
}

/* ─────────────────────────────────────────────────────
   MAPS EXPORT PICKER
───────────────────────────────────────────────────── */
#maps-export-picker { position: fixed; inset: 0; z-index: 700; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .28s; }
#maps-export-picker.open { opacity: 1; pointer-events: auto; }
#maps-picker-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.52); backdrop-filter: blur(4px); }
#maps-picker-panel { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--sh-lg); width: 100%; max-width: 380px; overflow: hidden; }
#maps-picker-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border-light); }
#maps-picker-title { display: flex; align-items: center; gap: 7px; font-family: 'Fraunces', serif; font-size: .95rem; font-weight: 600; }
#maps-picker-close { background: transparent; border: none; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; }
#maps-picker-body { padding: .85rem; display: flex; flex-direction: column; gap: .5rem; }
#maps-picker-info { display: flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--text-label); padding: .35rem .65rem; background: var(--bg-hover); border-radius: 8px; }
.maps-picker-btn { display: flex; align-items: center; gap: .75rem; padding: .75rem .85rem; border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg-hover); color: var(--text-base); font-family: 'Plus Jakarta Sans', sans-serif; font-size: .82rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: all .18s; }
.maps-picker-btn:hover { box-shadow: var(--sh-sm); transform: translateY(-1px); }
.maps-picker-btn.google:hover { border-color: #4285f4; }
.maps-picker-btn.apple:hover  { border-color: #555; }
.maps-btn-label { font-size: .82rem; font-weight: 700; color: var(--text-base); }
.maps-btn-sub   { font-size: .7rem; font-weight: 400; color: var(--text-label); }

/* ─────────────────────────────────────────────────────
   RESPONSIVE — Mobile (≤700px)
───────────────────────────────────────────────────── */
@media (max-width: 700px) {
  #nav-tabs           { display: none; }
  #mobile-bottom-nav  { display: flex; }
  #mobile-search-bar  { display: flex; }

  #sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 10000; transform: translateX(-101%);
    width: 280px;
  }
  #sidebar.drawer-open { transform: translateX(0); }

  #app-main { padding-bottom: 58px; }

  #clubs-grid { padding: .6rem .65rem; gap: .6rem; }

  #detail-panel { width: 100vw; border-left: none; }

  #compare-bar { bottom: calc(-90px - 58px); max-width: 96vw; }
  #compare-bar.visible { bottom: calc(1.25rem + 58px); }

  .evnt-card { flex-direction: column; }
  .evnt-date-col { flex-direction: row; justify-content: flex-start; gap: .4rem; min-width: auto; padding: .35rem .6rem; }
  .evnt-day { font-size: 1.1rem; }

  .emp-panel { width: 100vw; border-left: none; }
  .emp-popup-panel { border-radius: 14px; max-height: calc(100vh - 1rem); }

  #info-club-panel { border-radius: 14px; }
  #info-club-body  { padding: 1rem; }

  .rev-kpi-row { grid-template-columns: 1fr; }
  .entr-grid   { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────
   Data-attribute CSS hooks (from SettingsModule)
───────────────────────────────────────────────────── */
html[data-showcom="false"] .badge2-flag { display: none; }
html[data-showweb="false"] .info-row-web { display: none; }
html[data-animations="false"] .club-card { animation: none !important; }

/* ══════════════════════════════════════════════════════
   F10 · Alertas para familias
   F7  · Ranking comunitario
   F2  · Tablón de convocatorias
══════════════════════════════════════════════════════ */

/* ── F10: Alta form — alerta block ──────────────────── */
.alta-alerta-block {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb),.2);
  border-radius: 10px;
}
.alta-alerta-toggle {
  display: flex; align-items: flex-start; gap: .6rem; cursor: pointer;
}
.alta-alerta-toggle input[type=checkbox] {
  margin-top: 2px; accent-color: var(--accent);
  width: 15px; height: 15px; flex-shrink: 0; cursor: pointer;
}
.alta-alerta-toggle span {
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600; color: var(--accent);
}
.alta-alerta-email {
  margin-top: .75rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.alta-alerta-email input {
  padding: .5rem .75rem; border-radius: 8px;
  border: 1.5px solid rgba(var(--accent-rgb),.35);
  background: var(--bg-card); color: var(--text-base);
  font-size: .82rem; outline: none;
  transition: border-color .15s;
}
.alta-alerta-email input:focus { border-color: var(--accent); }
.alta-alerta-hint {
  font-size: .74rem; color: var(--text-label); line-height: 1.4; margin: 0;
}
/* F10: Mis alertas panel */
.alertas-panel {
  margin: 1.5rem auto; max-width: 640px; padding: 1rem 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
}
.alertas-panel-title {
  display: flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-label); margin-bottom: .65rem;
}
.alerta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; padding: .45rem 0;
  border-bottom: 1px solid var(--border);
}
.alerta-row:last-child { border-bottom: none; }
.alerta-info { font-size: .78rem; color: var(--text-muted); flex: 1; }
.alerta-cancel-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: .22rem .65rem; font-size: .73rem; color: var(--text-label);
  cursor: pointer; transition: background .15s, color .15s; white-space: nowrap;
}
.alerta-cancel-btn:hover { background: #fff0f0; border-color: #f0b0b0; color: #c0392b; }

/* ── F7: Ranking comunitario ─────────────────────── */
.ranking-section-wrap {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.ranking-loading {
  display: flex; align-items: center; gap: .6rem;
  color: var(--text-label); font-size: .82rem; padding: 1rem 0;
}
.ranking-loading .spin {
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ranking-unavail {
  color: var(--text-label); font-size: .82rem; font-style: italic; padding: 1rem 0;
}
.ranking-header { margin-bottom: 1.25rem; }
.ranking-title {
  font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700;
  color: var(--text-base); margin: 0 0 .25rem;
}
.ranking-subtitle { font-size: .74rem; color: var(--text-label); margin: 0; }
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.ranking-com-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: box-shadow .15s;
}
.ranking-com-card:hover { box-shadow: var(--sh-md); }
.ranking-com-header {
  display: flex; align-items: center; gap: .5rem;
  padding: .65rem 1rem;
  background: var(--bg-hover); border-bottom: 1px solid var(--border);
}
.ranking-com-flag { font-size: 1rem; }
.ranking-com-name  { font-size: .82rem; font-weight: 700; color: var(--text-base); flex: 1; }
.ranking-com-count { font-size: .68rem; color: var(--text-label); white-space: nowrap; }
.ranking-list {
  list-style: none; margin: 0; padding: .4rem 0;
}
.ranking-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem; cursor: pointer;
  transition: background .12s;
  border-radius: 0;
}
.ranking-item:hover { background: var(--bg-hover); }
.ranking-item:focus { outline: 2px solid var(--accent); }
.ranking-item--gold   { background: linear-gradient(90deg, #fef8ec 0%, transparent 80%); }
.ranking-item--silver { background: linear-gradient(90deg, #f4f5f8 0%, transparent 80%); }
.ranking-item--bronze { background: linear-gradient(90deg, #fff5ec 0%, transparent 80%); }
.ranking-pos  { font-size: .9rem; min-width: 1.8rem; text-align: center; }
.ranking-club-info { flex: 1; min-width: 0; }
.ranking-club-name {
  font-size: .79rem; font-weight: 600; color: var(--text-base);
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ranking-club-city { font-size: .69rem; color: var(--text-label); }
.ranking-score {
  display: flex; align-items: center; gap: .25rem; flex-shrink: 0;
}
.ranking-stars { font-size: .7rem; color: var(--fav-col); letter-spacing: -1px; }
.ranking-media { font-size: .79rem; font-weight: 700; color: var(--fav-col); }
.ranking-votos { font-size: .68rem; color: var(--text-label); }
/* Card ranking badge */
.card-ranking-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: linear-gradient(135deg, #fef8ec, #fde9a0);
  border: 1px solid #e8c040; border-radius: 20px;
  padding: .18rem .6rem; font-size: .68rem; font-weight: 700;
  color: #7a5000; white-space: nowrap; margin-top: .2rem;
}

/* ── F2: Convocatorias page ─────────────────────── */
#view-convocatorias {
  display: none;
  padding: 0;
  flex-direction: column;
}
#view-convocatorias.show {
  display: flex;
}
.conv-page-header {
  padding: 1.25rem 1.5rem .75rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.conv-page-title-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: .85rem;
}
.conv-page-title {
  display: flex; align-items: center; gap: .5rem;
  font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 700;
  color: var(--text-base); margin: 0 0 .2rem;
}
.conv-page-subtitle { font-size: .76rem; color: var(--text-label); margin: 0; }
.conv-btn-publicar {
  display: flex; align-items: center; gap: .4rem;
  background: var(--accent); color: white;
  border: none; border-radius: 9px; padding: .5rem 1rem;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: opacity .15s; flex-shrink: 0;
}
.conv-btn-publicar:hover { opacity: .88; }
.conv-filter-bar {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem;
}
.conv-filter-bar input,
.conv-filter-bar select {
  padding: .4rem .7rem; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--bg-hover);
  color: var(--text-base); font-size: .78rem; outline: none;
  transition: border-color .15s;
}
.conv-filter-bar input { min-width: 200px; flex: 1; }
.conv-filter-bar input:focus,
.conv-filter-bar select:focus { border-color: var(--accent); }
.conv-results-bar {
  font-size: .76rem; font-weight: 600; color: var(--text-label);
}
/* Grid */
.conv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem; padding: 1.25rem 1.5rem;
}
/* Card */
.conv-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 1rem 1.1rem;
  cursor: pointer; transition: box-shadow .15s, border-color .15s;
  display: flex; flex-direction: column; gap: .6rem;
}
.conv-card:hover {
  box-shadow: var(--sh-md); border-color: rgba(var(--accent-rgb),.3);
}
.conv-card-header {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.conv-tipo-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  border-radius: 20px; padding: .2rem .7rem;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.conv-badge-urgent {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #fff0f0; color: #c84040; border: 1px solid #f0b0b0;
  border-radius: 20px; padding: .2rem .6rem; font-size: .69rem; font-weight: 700;
}
.conv-badge-expira {
  font-size: .69rem; color: var(--text-label); margin-left: auto;
}
.conv-titulo {
  font-size: .92rem; font-weight: 700; color: var(--text-base);
  line-height: 1.35; margin: 0;
}
.conv-meta {
  display: flex; flex-wrap: wrap; gap: .3rem .8rem;
}
.conv-meta span {
  display: flex; align-items: center; gap: 4px;
  font-size: .74rem; color: var(--text-muted);
}
.conv-desc {
  font-size: .77rem; color: var(--text-label); line-height: 1.5;
  margin: 0; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.conv-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .4rem;
  border-top: 1px solid var(--border);
}
.conv-club-chip {
  display: flex; align-items: center; gap: .4rem;
  font-size: .74rem; font-weight: 600; color: var(--text-muted);
}
.conv-contacto-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb),.25); border-radius: 7px;
  padding: .25rem .65rem; font-size: .74rem; font-weight: 600;
  text-decoration: none; transition: background .15s; white-space: nowrap;
}
.conv-contacto-btn:hover { background: var(--accent); color: white; }

/* Form popup */
#conv-form-popup {
  position: fixed; inset: 0; z-index: 8500;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
#conv-form-popup[hidden] { display: none; }
#conv-form-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
}
#conv-form-inner {
  position: relative; z-index: 1;
  background: var(--bg-card); border-radius: 16px;
  width: min(560px, 96vw); max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  animation: slideUp .22s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
#conv-form-header {
  padding: 1.1rem 1.25rem .85rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem;
}
#conv-form-header h3 {
  font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700;
  color: var(--text-base); margin: 0 0 .2rem;
}
#conv-form-header p { font-size: .75rem; color: var(--text-label); margin: 0; }
#conv-form-close {
  background: var(--bg-hover); border: none; border-radius: 8px;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-label); flex-shrink: 0;
  transition: background .15s, color .15s;
}
#conv-form-close:hover { background: var(--accent-soft); color: var(--accent); }
#conv-form { padding: 1rem 1.25rem; }
.conv-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
.conv-form-group { display: flex; flex-direction: column; gap: .3rem; }
.conv-form-full  { grid-column: 1 / -1; }
.conv-form-group label {
  font-size: .74rem; font-weight: 600; color: var(--text-label); text-transform: uppercase;
  letter-spacing: .04em;
}
.conv-form-group input,
.conv-form-group select,
.conv-form-group textarea {
  padding: .48rem .75rem; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--bg-hover);
  color: var(--text-base); font-size: .82rem; outline: none;
  transition: border-color .15s; resize: vertical;
  font-family: inherit;
}
.conv-form-group input:focus,
.conv-form-group select:focus,
.conv-form-group textarea:focus { border-color: var(--accent); }
.conv-form-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: .6rem;
  padding: .85rem 1.25rem 1.1rem; border-top: 1px solid var(--border);
}
.conv-btn-cancel {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: .45rem 1rem; font-size: .82rem; color: var(--text-label);
  cursor: pointer; transition: background .15s;
}
.conv-btn-cancel:hover { background: var(--bg-hover); }
.conv-btn-submit {
  display: flex; align-items: center; gap: .4rem;
  background: var(--accent); color: white; border: none; border-radius: 8px;
  padding: .5rem 1.1rem; font-size: .82rem; font-weight: 700;
  cursor: pointer; transition: opacity .15s;
}
.conv-btn-submit:hover { opacity: .88; }
.conv-btn-submit:disabled { opacity: .5; cursor: not-allowed; }

/* Responsive */
@media (max-width: 700px) {
  .conv-page-title-row { flex-direction: column; }
  .conv-btn-publicar   { width: 100%; justify-content: center; }
  .conv-grid           { grid-template-columns: 1fr; padding: 1rem; }
  .conv-form-grid      { grid-template-columns: 1fr; }
  .conv-form-full      { grid-column: 1; }
  .ranking-grid        { grid-template-columns: 1fr; }
}

/* ── Ranking: vista de página propia ──────────────── */
/* #view-ranking — column layout so header + content stack vertically */
#view-ranking        { flex-direction: column; }
.ranking-page-header {
  padding: 1.1rem 1.5rem .7rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  flex-shrink: 0;
  width: 100%;
}
.ranking-page-title {
  font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700;
  color: var(--text-base); margin: 0 0 .2rem;
}
.ranking-page-subtitle {
  font-size: .76rem; color: var(--text-label); margin: 0 0 .55rem;
}
.ranking-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem;
  font-size: .74rem; color: var(--text-label);
}
.ranking-legend-item { display: flex; align-items: center; gap: .3rem; }
.ranking-legend-sep  { color: var(--border); }
.ranking-legend-info { font-style: italic; }
.ranking-page-content {
  padding: 1.25rem 1.5rem 2rem;
  flex: 1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
/* Larger grid on the ranking page — fills all available horizontal space */
.ranking-page-content .ranking-grid {
  /* 2 cols on wide screens, 1 on narrow — fills the full available width */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  width: 100%;
}
.ranking-page-content .ranking-com-card {
  border-width: 1.5px;
}
.ranking-page-content .ranking-item {
  padding: .55rem 1rem;
}
.ranking-page-content .ranking-club-name { font-size: .84rem; }
.ranking-page-content .ranking-media     { font-size: .88rem; }
@media (max-width: 700px) {
  .ranking-page-content { padding: .75rem; }
  .ranking-page-content .ranking-grid { grid-template-columns: 1fr; }
  .ranking-page-header { padding: .85rem 1rem .6rem; position: sticky; }

}

/* ══════════════════════════════════════════════════════
   Notificaciones — página propia
══════════════════════════════════════════════════════ */
#view-notificaciones { flex-direction: column; }

.notif-page {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header */
.notif-header {
  display: flex; align-items: flex-start; gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.notif-header-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.notif-title {
  font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 700;
  color: var(--text-base); margin: 0 0 .25rem;
}
.notif-subtitle { font-size: .82rem; color: var(--text-label); margin: 0; line-height: 1.5; }

/* Section */
.notif-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}
.notif-section-title {
  display: flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-label);
  margin: 0 0 1rem;
}
.notif-badge {
  background: var(--accent); color: white;
  font-size: .65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* Form */
.notif-form-wrap { display: flex; flex-direction: column; gap: .85rem; }
.notif-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .65rem;
}
.notif-form-group { display: flex; flex-direction: column; gap: .28rem; }
.notif-form-full  { grid-column: 1 / -1; }
.notif-form-group label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-label);
}
.notif-form-group input,
.notif-form-group select {
  padding: .5rem .75rem; border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--bg-hover); color: var(--text-base);
  font-size: .84rem; outline: none; font-family: inherit;
  transition: border-color .15s;
}
.notif-form-group input:focus,
.notif-form-group select:focus { border-color: var(--accent); }
.notif-form-hint {
  font-size: .74rem; color: var(--text-label); line-height: 1.5; margin: 0;
}
.notif-btn-primary {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--accent); color: white;
  border: none; border-radius: 9px;
  padding: .55rem 1.2rem; font-size: .84rem; font-weight: 700;
  cursor: pointer; transition: opacity .15s; align-self: flex-start;
}
.notif-btn-primary:hover  { opacity: .88; }
.notif-btn-primary:disabled { opacity: .5; cursor: not-allowed; }

/* Alertas list */
.notif-alerta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.notif-alerta-row:last-child { border-bottom: none; }
.notif-alerta-info {
  display: flex; flex-direction: column; gap: .18rem; flex: 1;
}
.notif-alerta-email { font-size: .8rem; font-weight: 600; color: var(--text-base); }
.notif-alerta-zona  { font-size: .74rem; color: var(--text-muted); }
.notif-btn-cancel {
  display: inline-flex; align-items: center; gap: .3rem;
  background: none; border: 1px solid var(--border); border-radius: 7px;
  padding: .3rem .7rem; font-size: .74rem; color: var(--text-label);
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.notif-btn-cancel:hover {
  background: #fff0f0; border-color: #f0b0b0; color: #c0392b;
}
.notif-btn-cancel:disabled { opacity: .5; cursor: not-allowed; }

/* Info list */
.notif-info-section { background: var(--bg-hover); }
.notif-info-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .55rem;
}
.notif-info-list li {
  font-size: .78rem; color: var(--text-muted); line-height: 1.5;
  padding-left: 1.1rem; position: relative;
}
.notif-info-list li::before {
  content: '·'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

@media (max-width: 700px) {
  .notif-page { padding: 1rem 1rem 5rem; }
  .notif-form-grid { grid-template-columns: 1fr; }
  .notif-form-full { grid-column: 1; }
  .notif-btn-primary { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════
   Mobile: Más drawer
══════════════════════════════════════════════════════ */
#mas-drawer-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}
#mas-drawer-backdrop.show { display: block; }

#mas-drawer {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1101;
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  padding: 0 0 calc(env(safe-area-inset-bottom) + .75rem);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
  /* only show on mobile */
  display: none;
}
@media (max-width: 700px) {
  #mas-drawer { display: block; }
}
#mas-drawer.open { transform: translateY(0); }

#mas-drawer-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border); margin: .75rem auto .4rem;
}
#mas-drawer-title {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-label);
  text-align: center; padding: .3rem 0 .75rem;
}
#mas-drawer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: .1rem; padding: 0 .5rem;
}
.mas-item {
  display: flex; flex-direction: column; align-items: center;
  gap: .4rem; padding: .75rem .25rem;
  background: none; border: none; border-radius: 12px;
  cursor: pointer; color: var(--text-muted);
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
  min-height: 72px;
}
.mas-item:active,
.mas-item:hover { background: var(--bg-hover); color: var(--accent); }
.mas-item.active { color: var(--accent); background: var(--accent-soft); }
.mas-icon {
  width: 24px; height: 24px; flex-shrink: 0; stroke: currentColor;
}
.mas-item span {
  font-size: .65rem; font-weight: 600; text-align: center;
  line-height: 1.2; color: inherit;
}

/* ─── Mobile bottom nav refinements ─────────────────── */
@media (max-width: 700px) {
  #mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
  .mbn-btn {
    min-height: 56px;
    padding: .45rem .1rem .35rem;
  }
  /* Más button active state (when a drawer tab is selected) */
  #mbn-mas-btn.active .mbn-icon { stroke: var(--accent); }
  #mbn-mas-btn.active span      { color: var(--accent); }
}
