/* ==========================================================================
   hub.css — ESTILO PRINCIPAL DEPORTEMEX (Verde Esmeralda Deportivo)
   y cromática adaptativa por Sede / Organización
   ========================================================================== */

:root {
  --emerald: #10b981;
  --emerald-2: #34d399;
  --emerald-dim: #059669;
  --emerald-soft: rgba(16, 185, 129, 0.14);
}

/* ---------- Modo Plataforma Principal: DeporteMex ---------- */
body[data-theme="hub"] {
  --bg: #080b10;
  --bg-2: #0d131b;
  --surface: #111822;
  --surface-2: #16202d;
  --line: rgba(148, 175, 198, 0.14);
  --line-strong: rgba(148, 175, 198, 0.28);
  background:
    radial-gradient(1050px 460px at 88% -8%, rgba(16, 185, 129, 0.15), transparent 62%),
    radial-gradient(880px 480px at -10% 10%, rgba(52, 211, 153, 0.08), transparent 60%),
    var(--bg);
}

body[data-theme="hub"] .site-header {
  background: rgba(8, 11, 16, 0.9);
}

body[data-theme="hub"] .site-header::after {
  background: linear-gradient(90deg, var(--emerald), var(--emerald-2));
}

.brand__emerald {
  color: var(--emerald-2);
}

body[data-theme="hub"] .brand__text strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

body[data-theme="hub"] .brand__logo {
  background: #080b10;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.36);
  overflow: hidden;
}

body[data-theme="hub"] .brand__logo img {
  object-fit: cover;
}

body[data-theme="hub"] .brand__sub {
  color: var(--emerald-2);
}

body[data-theme="hub"] .main-nav a.is-active,
body[data-theme="hub"] .main-nav a.nav-admin.is-active {
  color: #032117;
  background: linear-gradient(180deg, var(--emerald-2), var(--emerald));
}

body[data-theme="hub"] .main-nav a.nav-admin:hover {
  border-color: rgba(52, 211, 153, 0.45);
}

body[data-theme="hub"] .section-head::after {
  background: var(--emerald);
}

body[data-theme="hub"] .site-footer {
  border-top-color: var(--emerald);
  background: linear-gradient(105deg, rgba(16, 185, 129, 0.12), var(--bg-2) 68%);
}

/* ---------- Modo Sede / Organización ---------- */
body[data-theme="org"] .site-header::after {
  background: var(--org-secondary, var(--upsin-secondary));
}

body[data-theme="org"] .site-footer {
  border-top-color: var(--org-secondary, var(--upsin-secondary));
  background: linear-gradient(100deg, color-mix(in srgb, var(--org-primary, var(--upsin-primary)) 60%, var(--bg-2)), var(--bg-2) 72%);
}

body[data-theme="org"] .brand__sub {
  color: var(--org-accent, var(--orange-2));
}

.brand-hub-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.32);
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald-2);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex: none;
  transition: background-color 0.16s, border-color 0.16s, transform 0.16s;
}

.brand-hub-back:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--emerald-2);
  transform: translateX(-1px);
}

.brand-hub-back .icon {
  width: 14px;
  height: 14px;
}

/* ---------- Botón Esmeralda Reutilizable ---------- */
.btn--emerald {
  background: linear-gradient(180deg, var(--emerald-2), var(--emerald));
  color: #032117;
  border-color: transparent;
  font-weight: 800;
}

.btn--emerald:hover {
  filter: brightness(1.06);
}

/* ==========================================================================
   CINTA SUPERIOR DE PARTIDOS (SCOREBOARD TICKER)
   ========================================================================== */
.hub-ticker-wrap {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 22, 0.92);
}

.hub-ticker {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 211, 153, 0.35) transparent;
}

.ticker-chip {
  flex: 0 0 auto;
  min-width: 215px;
  max-width: 265px;
  display: grid;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--chip-org-accent, var(--emerald));
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: border-color 0.16s, background-color 0.16s, transform 0.16s;
}

.ticker-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(52, 211, 153, 0.45);
  transform: translateY(-1px);
}

.ticker-chip__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ticker-chip__org {
  color: var(--chip-org-accent, var(--emerald-2));
}

.ticker-chip__state {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ticker-chip__state.is-live {
  color: #fca5a5;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

.ticker-chip__match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ticker-chip__teams {
  display: grid;
  gap: 2px;
}

.ticker-chip__team {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-chip__scores {
  display: grid;
  gap: 2px;
  text-align: right;
  font-weight: 800;
  color: var(--text);
}

/* ==========================================================================
   HERO PRINCIPAL DEPORTEMEX
   ========================================================================== */
.hub-hero {
  position: relative;
  padding: clamp(28px, 4.5vw, 52px) 0 clamp(22px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

.hub-hero__grid {
  display: grid;
  gap: 22px;
}

.hub-hero__header {
  display: grid;
  gap: 12px;
}

.hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.8vw, 4.35rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: #ffffff;
}

.hub-hero__title span {
  color: var(--emerald-2);
}

.hub-hero__lead {
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.65vw, 1.14rem);
  line-height: 1.55;
}

.hub-hero__lead strong {
  color: var(--text);
  font-weight: 700;
}

.hub-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hub-search-input {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: border-color 0.16s, box-shadow 0.16s;
}

.hub-search-input:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.hub-search-input input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.96rem;
}

.hub-hero__cta {
  min-height: 48px;
  padding-inline: 20px;
}

.hub-hero__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hub-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-pill {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.hub-pill:hover {
  color: var(--text);
  border-color: rgba(52, 211, 153, 0.45);
}

.hub-pill.is-active {
  background: linear-gradient(180deg, var(--emerald-2), var(--emerald));
  color: #032117;
  border-color: transparent;
}

.hub-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
}

.hub-metrics div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.hub-metrics dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.hub-metrics dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--emerald-2);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   ENCABEZADOS DE SECCIÓN CON JERARQUÍA VISUAL GUIADA
   ========================================================================== */
.hub-section-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.hub-section-intro__copy {
  display: grid;
  gap: 5px;
  max-width: 68ch;
}

.hub-step-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--emerald-2);
}

.hub-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-2);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
  flex: none;
}

.hub-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
  color: #ffffff;
}

.hub-section-title span {
  color: var(--emerald-2);
}

.hub-section-lead {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.48;
}

/* ==========================================================================
   TARJETAS DE SEDES Y LIGAS — ANCHO COMPLETO HORIZONTAL (PC Y MÓVIL)
   ========================================================================== */
.org-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.org-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 28px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--org-secondary, var(--emerald)) 42%, rgba(255, 255, 255, 0.14));
  background:
    radial-gradient(520px 240px at 96% 10%, color-mix(in srgb, var(--org-secondary, var(--emerald)) 22%, transparent), transparent 68%),
    linear-gradient(125deg, color-mix(in srgb, var(--org-primary, #0f182c) 52%, #0d131b), #0c1118 76%);
  box-shadow: var(--shadow);
  transition: transform 0.18s var(--ease), border-color 0.18s, box-shadow 0.18s;
}

.org-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--org-accent, var(--emerald-2)), var(--org-secondary, var(--emerald)), var(--org-primary, var(--emerald-dim)));
}

.org-card:hover {
  transform: translateY(-2px);
  border-color: var(--org-accent, var(--emerald-2));
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.72);
}

.org-card__main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.org-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.org-card__identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.org-card__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.org-card__logo {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  padding: 7px;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
}

.org-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.org-card__monogram {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--org-primary, var(--emerald)), var(--org-secondary, var(--emerald-dim)));
}

.org-card__city {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--org-accent, var(--emerald-2));
}

.org-card__badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #ffffff;
  background: color-mix(in srgb, var(--org-secondary, var(--emerald)) 32%, rgba(255, 255, 255, 0.08));
  border: 1px solid color-mix(in srgb, var(--org-accent, var(--emerald-2)) 45%, transparent);
}

.org-card__name {
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 1.02;
  text-transform: uppercase;
  color: #ffffff;
}

.org-card__sub {
  font-size: 0.92rem;
  color: rgba(236, 244, 252, 0.82);
  font-weight: 500;
}

.org-card__desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 68ch;
}

.org-card__sports {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.org-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.org-card__aside {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none;
}

.org-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(4, 8, 14, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
  text-align: center;
}

.org-card__facts dt {
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.org-card__facts dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.org-card__cta {
  justify-content: space-between;
  min-width: 196px;
  min-height: 46px;
  padding-inline: 18px;
  background: linear-gradient(90deg, var(--org-secondary, var(--emerald)), color-mix(in srgb, var(--org-accent, var(--emerald-2)) 65%, var(--org-secondary, var(--emerald))));
  color: #ffffff;
  border-color: transparent;
  font-weight: 800;
}

.org-card--invite {
  border-style: dashed;
  border-color: rgba(52, 211, 153, 0.42);
  background:
    radial-gradient(460px 200px at 94% 20%, rgba(16, 185, 129, 0.14), transparent 70%),
    rgba(13, 20, 28, 0.72);
  padding: 20px 24px;
}

.org-card--invite::before {
  background: linear-gradient(180deg, var(--emerald-2), var(--emerald));
}

.org-card__invite-copy {
  display: grid;
  gap: 6px;
}

.org-card__invite-cta {
  min-width: 196px;
  min-height: 46px;
  justify-content: space-between;
}

/* ==========================================================================
   DIRECTORIO DE TORNEOS EN HUB — ANCHO COMPLETO HORIZONTAL (PC Y MÓVIL)
   ========================================================================== */
.hub-t-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hub-t-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto auto;
  align-items: center;
  gap: 16px 24px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.16s var(--ease), border-color 0.16s, background-color 0.16s;
}

.hub-t-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--org-accent, var(--emerald-2)), var(--org-secondary, var(--emerald)));
}

.hub-t-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--org-accent, var(--emerald-2)) 65%, rgba(255, 255, 255, 0.15));
  background: var(--surface-2);
}

.hub-t-card__main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.hub-t-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.hub-t-card__org {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--org-secondary, var(--emerald)) 26%, transparent);
  color: #ffffff;
  border: 1px solid color-mix(in srgb, var(--org-secondary, var(--emerald)) 55%, transparent);
}

.hub-t-card__title {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.04;
  text-transform: uppercase;
  color: #ffffff;
}

.hub-t-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(66px, 1fr));
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  margin: 0;
  text-align: center;
}

.hub-t-card__facts dt {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hub-t-card__facts dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hub-t-card__cta {
  min-width: 176px;
  min-height: 42px;
  justify-content: space-between;
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--text);
}

.hub-t-card__cta:hover {
  border-color: var(--emerald-2);
  background: rgba(16, 185, 129, 0.14);
}

/* ==========================================================================
   SECCIÓN DE CAPTACIÓN Y CONTACTO (669 325 9371)
   ========================================================================== */
.hub-contact {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(52, 211, 153, 0.32);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(16, 185, 129, 0.16), transparent 65%),
    linear-gradient(145deg, #0d1620, #090e14);
}

.hub-contact__main {
  display: grid;
  gap: 8px;
  align-content: start;
}

.hub-contact__title {
  margin-top: 2px;
}

.hub-contact__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.hub-feature {
  padding: 13px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.hub-feature strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--emerald-2);
  margin-bottom: 4px;
}

.hub-feature p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.hub-contact__box {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 24px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.hub-contact__box-lead {
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.45;
}

.hub-contact__phone {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.65rem);
  font-weight: 900;
  color: var(--emerald-2);
  letter-spacing: 0.03em;
  line-height: 1;
}

.hub-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 960px) {
  .org-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 16px;
  }

  .org-card__aside {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .org-card__facts {
    width: 100%;
  }

  .org-card__cta,
  .org-card__invite-cta {
    width: 100%;
    min-width: 0;
  }

  .hub-t-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
  }

  .hub-t-card__facts {
    width: 100%;
  }

  .hub-t-card__cta {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 860px) {
  .hub-contact {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .hub-hero__cta {
    width: 100%;
    justify-content: center;
  }

  .org-card {
    padding: 18px 16px 18px 20px;
  }

  .org-card__logo,
  .org-card__monogram {
    width: 56px;
    height: 56px;
  }

  .hub-t-card {
    padding: 16px 16px 16px 20px;
  }

  .hub-contact {
    padding: 18px 16px;
  }

  .hub-contact__features {
    grid-template-columns: 1fr;
  }

  .hub-contact__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .brand-hub-back span:last-child {
    display: none;
  }
}

/* ==========================================================================
   BOTÓN FLOTANTE PARA INVITADOS ("Regresar a DeporteMex")
   ========================================================================== */
.floating-hub-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(8, 13, 19, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(16, 185, 129, 0.14);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s, box-shadow 0.22s var(--ease), color 0.18s;
}

.floating-hub-btn__icon {
  display: inline-flex;
  align-items: center;
  color: var(--emerald-2);
  transition: transform 0.22s var(--ease), color 0.18s;
}

.floating-hub-btn__icon .icon {
  width: 17px;
  height: 17px;
}

.floating-hub-btn strong {
  color: var(--emerald-2);
  font-weight: 800;
  transition: color 0.18s;
}

.floating-hub-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--emerald-2), var(--emerald));
  border-color: transparent;
  color: #032117;
  box-shadow: 0 14px 30px -6px rgba(16, 185, 129, 0.52);
}

.floating-hub-btn:hover strong,
.floating-hub-btn:hover .floating-hub-btn__icon {
  color: #032117;
}

.floating-hub-btn:hover .floating-hub-btn__icon {
  transform: translateX(-3px);
}

.floating-hub-btn:active {
  transform: translateY(0) scale(0.98);
}

.floating-hub-btn:focus-visible {
  outline: 3px solid var(--emerald-2);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .floating-hub-btn {
    bottom: 14px;
    left: 14px;
    padding: 9px 14px;
    font-size: 0.84rem;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-hub-btn,
  .floating-hub-btn__icon {
    transition: none;
  }
}

/* ==========================================================================
   ESTADO DE FILTROS DEL HUB Y TARJETA VACÍA
   ========================================================================== */
.hub-filter-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(16, 185, 129, 0.08);
  font-size: 0.86rem;
  color: var(--text);
}

.hub-filter-status[hidden] {
  display: none;
}

.hub-filter-status strong {
  color: var(--emerald-2);
}

.hub-filter-reset {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: transparent;
  color: var(--emerald-2);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.hub-filter-reset:hover {
  background: var(--emerald);
  color: #032117;
  border-color: transparent;
}

.org-card--empty {
  border-style: dashed;
  border-color: var(--line-strong);
  background: rgba(17, 24, 34, 0.72);
  align-content: space-between;
}

.org-card--empty::before {
  background: var(--line-strong);
}

.hub-t-grid .state,
.org-grid .state {
  grid-column: 1 / -1;
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ SEO) Y ENLACES DEL FOOTER
   ========================================================================== */
.hub-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hub-faq__item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px 18px;
  transition: border-color 0.16s ease;
}

.hub-faq__item[open] {
  border-color: rgba(52, 211, 153, 0.36);
}

.hub-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  font-size: 0.96rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hub-faq__item summary::-webkit-details-marker {
  display: none;
}

.hub-faq__item summary::after {
  content: '+';
  color: var(--emerald-2);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.hub-faq__item[open] summary::after {
  content: '−';
}

.hub-faq__item p {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.hub-faq__item a {
  color: var(--emerald-2);
  text-decoration: underline;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.site-footer__links a {
  color: var(--emerald-2);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .hub-faq {
    grid-template-columns: 1fr;
  }
  .site-footer__links {
    align-items: flex-start;
  }
}
