@font-face { font-family: "Helvetica Neue GR"; src: url("fonts/helvetica-neue-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Helvetica Neue GR"; src: url("fonts/helvetica-neue-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Coolvetica GR"; src: url("fonts/coolvetica-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Helvetica condensada: TeX Gyre Heros Cn Bold (licencia GUST, libre; ver fonts/GUST-FONT-LICENSE.txt) */
@font-face { font-family: "Helvetica Cond GR"; src: url("fonts/helvetica-cond-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #6b6b6b;
  --color-border: #e5e5e5;
  --color-surface: #f4f4f4;
  --color-cta: #1941f5;
  --color-cta-tint: #c6d0fd;
  --color-brand: #ee8432; /* naranja Greener: títulos, logos e iconos */
  --color-up: #3f9d3a;
  --color-down: #eb4626;
  --color-same: #1941f5;
  --sidebar-width: 64px;
  --radius-control: 8px;
  --radius-pill: 999px;
  --font-body: "Helvetica Neue GR", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-display: "Coolvetica GR", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-cond: "Helvetica Cond GR", "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }

/* Barra izquierda de Greener: por ahora vacía, se completará con el menú del sitio */
.shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; border-right: 1px solid var(--color-border); }
.content { padding: 32px 40px 64px; max-width: 1280px; width: 100%; }

/* Cabecera */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 40px; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; margin: 0 0 16px; letter-spacing: -0.01em; }
.lead { max-width: 720px; font-size: 18px; line-height: 1.45; margin: 0 0 16px; }
.report { color: var(--color-muted); font-size: 14px; margin: 0 0 32px; }
.report b { color: var(--color-text); font-weight: 700; }

/* Selector de país */
.country { position: relative; }
.country summary, .period summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-control); font-size: 14px;
}
.country summary::-webkit-details-marker, .period summary::-webkit-details-marker { display: none; }
.country summary::after, .period summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.country[open] summary, .period[open] summary { border-color: var(--color-text); }
.country ul, .period ul {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 260px; max-height: min(70vh, 460px); overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-control); box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
}
.country li, .period li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.country li:hover, .period li:hover { background: var(--color-surface); }
.country li[aria-selected="true"], .period li[aria-selected="true"] { background: var(--color-surface); font-weight: 700; }
.country li small, .period li small { margin-left: auto; font-size: 12px; color: var(--color-muted); font-weight: 400; }
.country li.soon, .period li.soon { color: var(--color-muted); cursor: default; }
.country li.soon:hover, .period li.soon:hover { background: none; }
.country li.sep, .period li.sep { height: 1px; padding: 0; margin: 6px 4px; background: var(--color-border); cursor: default; }
.flag { width: 21px; height: 14px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgb(0 0 0 / 8%); display: block; object-fit: cover; }
.flag.globe { box-shadow: none; color: var(--color-text); }

/* Idioma */
.lang { display: inline-flex; border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 2px; }
.lang button { border: 0; background: none; cursor: pointer; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 13px; }
.lang button[aria-pressed="true"] { background: var(--color-text); color: var(--color-bg); }

/* Tabla */
.tablewrap { overflow-x: auto; border-top: 1px solid var(--color-text); }
.rank { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 1000px; }
.rank th { text-align: left; font-weight: 400; color: var(--color-muted); font-size: 12px; padding: 12px 10px; border-bottom: 1px solid var(--color-border); white-space: nowrap; vertical-align: bottom; }
.rank th.sortable { cursor: pointer; user-select: none; }
.rank th.sortable:hover { color: var(--color-text); }
.rank th.on { color: var(--color-text); font-weight: 700; }
.rank th.on::after { content: " ↓"; }
.rank th small.wlabel { display: block; font-size: 11px; color: var(--color-muted); font-weight: 400; }
.rank td { padding: 10px 10px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.rank tbody tr:hover td { background: #fafafa; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-pos { width: 76px; }
.rank .c-web { width: 44px; text-align: center !important; }
.webl { display: inline-flex; padding: 2px; color: var(--color-muted); opacity: .7; transition: opacity .15s, color .15s; }
.webl:hover { color: var(--color-text); opacity: 1; }

.pos { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 6px; row-gap: 1px; justify-content: start; font-variant-numeric: tabular-nums; }
.pos b { font-size: 16px; min-width: 26px; }
.pos .gen { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--color-muted); white-space: nowrap; }
.pos .gen .flag { width: 15px; height: 10px; }
.mv { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; }
.mv svg { width: 10px; height: 10px; }
.mv.up { color: var(--color-up); }
.mv.down { color: var(--color-down); }
.mv.same { color: var(--color-same); }

.who { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--color-surface); display: grid; place-items: center; font-size: 12px; color: var(--color-muted); }
.who a { text-decoration: none; }
.who a:hover .nm { text-decoration: underline; }
.nm { display: block; font-weight: 700; }
.nm .hq { display: inline-block; margin-right: 5px; vertical-align: 1px; }
.nm .hq .flag { display: inline-block; width: 13px; height: 9px; border-radius: 1px; vertical-align: baseline; }
.handle { display: block; font-size: 12px; color: var(--color-muted); }

.fig { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 6px; }
.fig a { text-decoration: none; }
.fig a:hover { text-decoration: underline; }
.meta { display: block; font-size: 11px; color: var(--color-muted); margin-top: 2px; }
.meta .pos-d { color: var(--color-up); }
.meta .neg-d { color: var(--color-down); }
.total { font-weight: 700; }
.dash { color: #c8c8c8; }

.state { text-align: center; color: var(--color-muted); padding: 48px 0 !important; }
.notes { font-size: 12px; color: var(--color-muted); margin-top: 20px; max-width: 760px; }

/* Grupos que se despliegan en sus cuentas */
.grp { cursor: pointer; }
.grp .who, .one .who { min-width: 240px; }
.caret { width: 18px; height: 18px; flex: none; display: grid; place-items: center; color: var(--color-muted); transition: transform .15s; }
.caret svg { width: 9px; height: 9px; }
.grp[aria-expanded="true"] .caret { transform: rotate(90deg); color: var(--color-text); }
.grp[aria-expanded="true"] td { border-bottom-color: transparent; }
.sub td { background: #fafafa; font-size: 13px; padding-top: 7px; padding-bottom: 7px; }
.sub.last td { border-bottom: 1px solid var(--color-border); }
.sub .who { gap: 8px; padding-left: 28px; min-width: 240px; }
.sub .avatar { width: 26px; height: 26px; font-size: 10px; }
.sub .nm { font-weight: 400; }
.sub .flag { width: 18px; height: 12px; }
.netmark { font-size: 10px; letter-spacing: .02em; color: var(--color-muted); border: 1px solid var(--color-border); border-radius: 4px; padding: 0 4px; line-height: 16px; flex: none; }
.partial { color: var(--color-muted); }
.count { font-size: 12px; color: var(--color-muted); font-weight: 400; }

/* Móvil: ver el bloque «Móvil» al final (tiene que ir después de las reglas de la barra lateral). */

/* Redes que no medimos: solo enlaces (como en el ranking de influencers) */
.nets { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; max-width: 150px; }
.nets a { color: var(--color-muted); text-decoration: none; white-space: nowrap; }
.nets a:hover { color: var(--color-text); text-decoration: underline; }
.nets a:has(img) { display: inline-flex; padding: 2px; }
.nets img { width: 16px; height: 16px; display: block; opacity: .55; transition: opacity .15s; }
.nets a:hover img { opacity: 1; }

/* La g de Greener en el menú lateral y el título, en azul Greener (recta y completa, nunca girada) */
.sidebar { display: flex; flex-direction: column; align-items: center; }
.sidebar { padding: 26px 0 24px; }
.side-home { display: block; }
.sidebar .uni { display: block; width: 30px; height: auto; aspect-ratio: 306 / 560; fill: var(--color-brand); }
.side-links { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.side-links a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-control); color: var(--color-brand); }
.side-links a:hover { background: var(--color-surface); }
.contact .cta { background: var(--color-brand); }
.contact textarea { border: 1px solid var(--color-border); border-radius: var(--radius-control); padding: 10px 12px; font: inherit; resize: vertical; min-height: 120px; }
.contact textarea:focus { outline: 2px solid #fbdcc0; border-color: var(--color-brand); }
.contact .mail input:focus { outline: 2px solid #fbdcc0; border-color: var(--color-brand); }
.contact-from { font-size: 13px; color: var(--color-muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.side-links svg { width: 22px; height: 22px; }
.side-g { display: block; margin-top: 22px; }
.sidebar .g { display: block; width: 13px; height: auto; aspect-ratio: 74 / 151.4; fill: var(--color-brand); }
h1 { color: var(--color-brand); white-space: pre-line; } /* el nombre, en tres líneas */

/* Páginas de marca: sin filtro por país (cada fila ya es un mercado o una empresa); el idioma queda a la derecha */
.no-country .country { display: none !important; }
.no-country .topbar { justify-content: flex-end; }

/* Filas solo con redes que no medimos: al final, más discretas */
.lonly .nm { color: var(--color-muted); }

/* Selector de periodo: a la derecha, a la altura de las categorías */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.period { position: relative; margin-left: auto; flex: none; }
.period ul { left: auto; right: 0; min-width: 180px; }

/* Variación en el periodo: al lado de la cifra, solo el número */
.dl { font-size: 11px; font-weight: 700; }
.dl.up { color: var(--color-up); }
.dl.down { color: var(--color-down); }

/* Logo de la marca en gris para las filas sin datos o sin foto */
.avatar.grey { filter: grayscale(1); opacity: .5; background: none; }

/* Periodo que cuentan las cifras: solo la indicación, a la derecha */

/* Cuentas de Instagram que Meta no deja leer (personales, privadas o que ya no existen): en gris, con un aviso; no suman */
.fig.dead { align-items: center; gap: 4px; }
.fig.dead a { display: inline-flex; padding: 2px; }
.fig.dead img { width: 16px; height: 16px; display: block; filter: grayscale(1); opacity: .4; transition: opacity .15s; }
.fig.dead a:hover img { opacity: .75; }
.who.dead .nm, .who.dead .netmark { color: #a8a8a8; }
.who.dead .flag { filter: grayscale(1); opacity: .5; }
.alert { color: #e0a100; flex: none; display: block; }

/* Buscador arriba: busca en nombres, cuentas, categorías, descripciones y productos */
.search { flex: 1; min-width: 220px; max-width: 560px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 8px 14px; color: var(--color-muted); background: var(--color-bg); }
.search:focus-within { border-color: var(--color-cta); color: var(--color-cta); }
.search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--color-text); min-width: 0; }

/* Categorías: botones arriba que se encienden y apagan (como en el ranking de influencers) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.pill { cursor: pointer; border: 1px solid var(--color-border); background: var(--color-bg); border-radius: var(--radius-pill); padding: 6px 12px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; transition: background .15s, border-color .15s; font-family: var(--font-cond); font-weight: 700; font-stretch: condensed; text-transform: uppercase; letter-spacing: .03em; }
.pill small { color: var(--color-muted); font-size: 12px; }
.pill[aria-pressed="true"] { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.pill[aria-pressed="true"] small { color: #fbdcc0; }
.pill.all { background: none; border-style: dashed; }
.f-ops .oblea { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-family: inherit; text-transform: none; letter-spacing: 0; }
.f-ops .oblea img, .f-ops .oblea svg { width: 16px; height: auto; }
/* «Solo bio» / «Pure bio player»: al final; apagada, blanca con ribete verde; encendida, verde lleno. */
.pill.pure[aria-pressed="false"] { color: #3f9d3a; border-color: #5bc656; background: #fff; }
.pill.pure[aria-pressed="false"] small { color: #7fb97b; }
.pill.pure[aria-pressed="true"] { background: #5bc656; border-color: #5bc656; color: #fff; }
.pill.pure[aria-pressed="true"] small { color: #e2f5e0; }

/* Filas: toda la fila abre la ficha; el triángulo despliega las cuentas */
#rows tr.grp, #rows tr.one { cursor: pointer; }
#rows tr.sel td { background: #f2f5ff; }
.caret { cursor: pointer; width: 26px; height: 26px; margin: -4px; border-radius: 50%; }
.caret:hover { background: var(--color-surface); color: var(--color-text); }

/* Ficha a la derecha, como en Get it done! */
.ficha { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--color-bg); box-shadow: -12px 0 40px rgb(0 0 0 / 10%); border-left: 1px solid var(--color-border); transform: translateX(105%); transition: transform .2s ease; overflow-y: auto; padding: 28px 28px 40px; z-index: 50; }
.ficha.open { transform: none; }
.ficha-close { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; font-size: 22px; line-height: 1; color: var(--color-muted); cursor: pointer; }
.ficha-close:hover { background: var(--color-surface); color: var(--color-text); }
.f-head { display: flex; gap: 14px; align-items: center; margin: 4px 36px 18px 0; }
.f-head .avatar { width: 52px; height: 52px; }
.f-head h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.2; color: var(--color-brand); }
.f-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--color-muted); }
.f-meta .flag { width: 18px; height: 12px; }
.obleas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.oblea { background: var(--color-surface); border-radius: var(--radius-pill); padding: 4px 10px; font-size: 12px; font-weight: 700; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .03em; }
.oblea.cat { background: var(--color-brand); color: #fff; }
.f-desc { font-size: 14px; line-height: 1.55; margin: 0 0 20px; }
.ficha h3 { font-size: 14px; margin: 20px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.ficha h3 small { color: var(--color-muted); font-weight: 400; }
.f-type { font-size: 12px; color: var(--color-muted); margin: 12px 0 4px; }
.f-prods { margin: 0; padding: 0 0 0 16px; font-size: 13px; line-height: 1.6; }
.f-empty { font-size: 13px; color: var(--color-muted); }
@media (max-width: 720px) { .search { max-width: none; } .ficha { padding: 22px 18px 32px; } }
.f-nets { list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; }
.f-nets li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.f-nets a { display: inline-flex; align-items: center; gap: 8px; color: var(--color-text); text-decoration: none; min-width: 0; }
.f-nets a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-nets a:hover span { text-decoration: underline; }
.f-nets img, .f-nets svg { width: 16px; height: 16px; flex: none; opacity: .7; }
.f-nets small { color: var(--color-muted); font-variant-numeric: tabular-nums; flex: none; }
.f-nets li.dead a { color: #a8a8a8; }
/* Filas que no se despliegan: el nombre enlaza a su cuenta. */
a.who { color: inherit; text-decoration: none; }
a.who:hover .nm { text-decoration: underline; }

/* ---------- webelieveinbiologicalunicorns.com: modo abierto, cuenta y registro */
[hidden] { display: none !important; }
.topbar .right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.account { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.who-am-i { color: var(--color-muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-btn { border: 1px solid var(--color-border); background: none; border-radius: var(--radius-pill); padding: 5px 14px; font-size: 13px; cursor: pointer; }
.acc-btn:hover { border-color: var(--color-text); }
.anon .caret { display: none; }
.anon #rows tr { cursor: default; }
.gate { text-align: center; padding: 8px 16px 40px; margin-top: -8px; }
.gate h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--color-brand); margin: 0 0 8px; }
.gate p { margin: 0 auto 18px; max-width: 520px; color: var(--color-muted); }
.gate .gate-small { margin: 14px auto 0; font-size: 13px; }
.cta { border: 0; background: var(--color-cta); color: #fff; border-radius: var(--radius-pill); padding: 11px 22px; font-weight: 700; cursor: pointer; }
.cta:hover { filter: brightness(1.08); }
.cta:disabled { opacity: .5; cursor: default; }
.linkish { border: 0; background: none; padding: 0; color: var(--color-cta); text-decoration: underline; cursor: pointer; font-size: inherit; }
.foot { font-size: 12px; color: var(--color-muted); margin-top: 24px; }
.foot a { color: inherit; }
.login { position: fixed; inset: 0; background: rgb(0 0 0 / 35%); display: grid; place-items: center; z-index: 80; padding: 16px; }
.login-box { position: relative; background: var(--color-bg); border-radius: 14px; width: min(400px, 100%); padding: 30px 28px 22px; box-shadow: 0 20px 60px rgb(0 0 0 / 20%); }
.login-box h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--color-brand); margin: 0 0 6px; }
.login-text { color: var(--color-muted); margin: 0 0 20px; }
.login-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; font-size: 22px; color: var(--color-muted); cursor: pointer; }
.prov { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 1px solid var(--color-border); background: none; border-radius: var(--radius-control); padding: 10px 14px; margin: 0 0 10px; cursor: pointer; font-weight: 700; }
.prov:hover { border-color: var(--color-text); }
.or { display: flex; align-items: center; gap: 10px; color: var(--color-muted); font-size: 13px; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--color-border); }
.mail { display: flex; flex-direction: column; gap: 10px; }
.mail input { border: 1px solid var(--color-border); border-radius: var(--radius-control); padding: 10px 12px; font: inherit; }
.mail input:focus { outline: 2px solid var(--color-cta-tint); border-color: var(--color-cta); }
.login-msg { font-size: 14px; margin: 12px 0 0; min-height: 0; }
.login-msg.err { color: var(--color-down); }
.legal { font-size: 12px; color: var(--color-muted); margin: 16px 0 0; }
.news-kicker { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--color-muted); margin: 0 0 4px; }
.news .login-text { color: var(--color-text); margin-bottom: 10px; }
.news-small { font-size: 13px; color: var(--color-muted); margin: 0 0 18px; }
.news-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.news-btn, .news-btn.on { border-color: var(--color-brand); color: var(--color-brand); }
.news-btn:hover { background: #fdf0e5; border-color: var(--color-brand); }
.news .cta { background: var(--color-brand); }
.news .linkish { color: var(--color-brand); }
@media (max-width: 720px) { .account .who-am-i { display: none; } }

/* Paginación del ranking (28/11/2026): 50 filas por página, con sesión */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 22px 0 6px; font-size: 13px; }
.pager button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: none; cursor: pointer; font-variant-numeric: tabular-nums; }
.pager button:hover:not(:disabled) { border-color: var(--color-text); }
.pager button[aria-current="page"] { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); font-weight: 700; }
.pager button:disabled { opacity: .3; cursor: default; }
.pager .pg-arrow { font-size: 18px; line-height: 1; }
.pg-gap { color: var(--color-muted); padding: 0 2px; }
.pg-range { flex-basis: 100%; text-align: center; color: var(--color-muted); font-size: 12px; margin-top: 2px; }

/* Mapa (29/11/2026): botón junto al buscador; las empresas como puntos en el país de su sede */
.mapbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 1px solid var(--color-border); background: var(--color-bg); border-radius: var(--radius-pill); padding: 8px 14px; font-family: var(--font-cond); font-weight: 700; font-stretch: condensed; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; color: var(--color-text); }
.mapbtn svg { width: 15px; height: 15px; color: var(--color-brand); }
.mapbtn:hover { border-color: var(--color-text); }
.mapbtn[aria-pressed="true"] { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.mapbtn[aria-pressed="true"] svg { color: #fff; }
.anon .mapbtn { opacity: .6; }
.mapwrap { border-top: 1px solid var(--color-text); padding-top: 14px; }
.map-box { position: relative; height: clamp(300px, 44vw, 560px); background: #fafafa; border-radius: 12px; overflow: hidden; }
#map-svg { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
#map-svg.dragging { cursor: grabbing; }
.map-land { fill: #e4e4e4; }
.dot { cursor: pointer; }
.dot circle { fill: var(--color-brand); fill-opacity: .85; stroke: #fff; stroke-width: 1.5; }
.dot:hover circle { fill-opacity: 1; }
.dot.multi circle { stroke-width: 3; stroke-opacity: .9; }
.dot text { fill: #fff; font-family: var(--font-body); font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.map-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.map-zoom button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-border); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; color: var(--color-text); }
.map-zoom button:hover { border-color: var(--color-text); }
.map-note { font-size: 12px; color: var(--color-muted); margin: 10px 0 0; }
.place-flag .flag { width: 42px; height: 28px; border-radius: 3px; }
.place-list { list-style: none; margin: 6px 0 0; padding: 0; }
.place-list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 4px; border: 0; border-bottom: 1px solid var(--color-border); background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.place-list button:hover { background: var(--color-surface); }
.place-list .avatar { width: 30px; height: 30px; }
.pl-rank { min-width: 30px; font-variant-numeric: tabular-nums; font-size: 13px; }
.pl-name { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; }
.pl-num { flex: none; font-variant-numeric: tabular-nums; color: var(--color-muted); font-size: 13px; }
.f-back { display: inline-block; border: 0; background: none; color: var(--color-muted); cursor: pointer; padding: 0; margin: 0 0 12px; font: inherit; font-size: 13px; }
.f-back:hover { color: var(--color-text); }

/* ---------- Móvil (28/11/2026)
   - La página no puede ser más ancha que la pantalla: la columna es minmax(0, 1fr) (con 1fr, la tabla de 1000 px la ensanchaba entera).
   - La barra de Greener pasa arriba, en horizontal: el unicornio a la izquierda; contacto, redes y la g a la derecha.
   - La tabla se vuelve una lista: cada empresa en un bloque (puesto, nombre y audiencia total; debajo, sus cifras con su nombre),
     y las cabeceras, una fila de botones que se desliza para ordenar. La web y las otras redes quedan para la ficha y el escritorio. */
@media (max-width: 720px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: 2px; padding: 10px 12px 10px 16px; border-right: 0; border-bottom: 1px solid var(--color-border); }
  .sidebar .uni { width: 19px; }
  .side-links { margin: 0 0 0 auto; flex-direction: row; gap: 0; }
  .side-links a { width: 36px; height: 36px; }
  .side-links svg { width: 20px; height: 20px; }
  .side-g { margin: 0 6px 0 10px; }
  .sidebar .g { width: 10px; }

  .content { padding: 14px 16px 48px; }
  .topbar { margin-bottom: 22px; }
  .topbar .right { gap: 8px; }
  h1 { font-size: 42px; margin-bottom: 14px; }
  .lead { font-size: 16px; }
  .report { margin-bottom: 24px; }

  /* País y buscador en una línea; las categorías, en una fila que se desliza de lado a lado */
  .filters { flex-wrap: nowrap; gap: 8px; margin-bottom: 12px; }
  .country { min-width: 0; flex: 0 1 auto; max-width: 44%; }
  .mapbtn { padding: 8px 11px; }
  .map-box { height: clamp(250px, 78vw, 460px); }
  .country summary { max-width: 100%; padding: 8px 10px; white-space: nowrap; }
  .country summary span { overflow: hidden; text-overflow: ellipsis; }
  .country summary > * { min-width: 0; }
  .country ul { max-width: calc(100vw - 32px); }
  .search { min-width: 0; }
  .pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; }

  /* Cabeceras: botones para ordenar */
  .tablewrap { overflow: visible; border-top: 0; }
  .rank, .rank thead, .rank tbody { display: block; min-width: 0; width: 100%; }
  .rank thead tr { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 12px; border-bottom: 1px solid var(--color-text); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rank thead tr::-webkit-scrollbar { display: none; }
  .rank th { flex: none; padding: 6px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); color: var(--color-text); font-size: 12px; line-height: 1.2; }
  .rank th.c-pos { width: auto; }
  .rank th.c-name, .rank th.c-web, .rank th.c-nets { display: none; }
  .rank th small.wlabel { display: none; }
  .rank th.on { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }

  /* Cada empresa, un bloque: 1.ª línea puesto · empresa · audiencia total; 2.ª Instagram · YouTube · engagement;
     3.ª publicaciones · likes · comentarios. Las mismas cifras siempre en la misma columna. */
  .rank tbody tr { display: grid; grid-template-columns: 30px repeat(3, minmax(0, 1fr)); column-gap: 10px; row-gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--color-border); }
  .rank td { display: block; min-width: 0; padding: 0; border: 0; background: none !important; }
  .rank td:empty { display: none; }
  .rank td:nth-child(1) { grid-column: 1; grid-row: 1; align-self: center; }
  .rank td:nth-child(2) { grid-column: 2 / 4; grid-row: 1; align-self: center; }
  .rank td:nth-child(3), .rank td:nth-child(7) { display: none; }
  .rank td:nth-child(4) { grid-column: 4; grid-row: 1; align-self: center; }
  .rank td:nth-child(5) { grid-column: 2; grid-row: 2; }
  .rank td:nth-child(6) { grid-column: 3; grid-row: 2; }
  .rank td:nth-child(11) { grid-column: 4; grid-row: 2; }
  .rank td:nth-child(8) { grid-column: 2; grid-row: 3; }
  .rank td:nth-child(9) { grid-column: 3; grid-row: 3; }
  .rank td:nth-child(10) { grid-column: 4; grid-row: 3; }
  .rank td.num { text-align: left !important; font-size: 13px; line-height: 1.3; white-space: normal; }
  .rank td.num::before { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 400; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rank td.total { font-size: 15px; }
  .rank td:nth-child(4)::before { content: "Total audience"; }
  .rank td:nth-child(5)::before { content: "Instagram"; }
  .rank td:nth-child(6)::before { content: "YouTube"; }
  .rank td:nth-child(8)::before { content: "Posts"; }
  .rank td:nth-child(9)::before { content: "Likes"; }
  .rank td:nth-child(10)::before { content: "Comments"; }
  .rank td:nth-child(11)::before { content: "Engagement"; }
  :lang(es) .rank td:nth-child(4)::before { content: "Audiencia total"; }
  :lang(es) .rank td:nth-child(8)::before { content: "Publicaciones"; }
  :lang(es) .rank td:nth-child(10)::before { content: "Comentarios"; }
  .rank td.state { grid-column: 1 / -1; grid-row: auto; padding: 40px 0 !important; text-align: center; }
  .rank td.state::before { content: none; }
  .fig { flex-wrap: wrap; justify-content: flex-start; column-gap: 4px; row-gap: 0; }

  .pos { display: block; }
  .pos b { display: block; min-width: 0; font-size: 17px; }
  .pos .gen { display: flex; flex-wrap: wrap; white-space: normal; font-size: 10px; line-height: 1.2; margin-top: 2px; }
  .who, .grp .who, .one .who, .sub .who { min-width: 0; gap: 10px; }
  .who > span:last-child { min-width: 0; }
  .nm { overflow-wrap: anywhere; line-height: 1.25; }
  .handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .caret { margin: -4px -6px -4px -8px; }

  /* Cuentas desplegadas: el mismo orden de columnas, en gris claro y sin la línea del total */
  .rank tbody tr.sub { background: #fafafa; padding: 10px 0; border-bottom-color: #efefef; }
  .rank tbody tr.sub.last { border-bottom-color: var(--color-border); }
  .rank tbody tr.grp[aria-expanded="true"] { border-bottom-color: #efefef; }
  .sub .who { padding-left: 0; gap: 6px; }
  .sub td:nth-child(2) { grid-column: 2 / -1; }
  .sub td.num { font-size: 12px; }
  #rows tr.sel { background: #f2f5ff; }

  /* Filas sin cifras (solo otras redes, cuentas que Instagram no deja leer): sin la cuadrícula de guiones; se ven sus redes */
  .rank tr.lonly td.num, .rank tr:has(.who.dead) td.num { display: none; }
  .rank tr.lonly td:nth-child(7) { display: block; grid-column: 2 / -1; grid-row: 2; }
  .rank tr.lonly .nets { max-width: none; }
  .rank tr.lonly td:nth-child(2) { grid-column: 2 / -1; }

  .gate { padding: 20px 0 32px; margin-top: 0; }
  .gate h2 { font-size: 26px; }
}
