/* ============================================================
   Liga Non Stop — acuPadel
   Estética deportiva · oscura · premium
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --lns-bg:         #111827;
  --lns-bg-2:       #1a2234;
  --lns-surface:    #1e293b;
  --lns-surface-2:  #263148;
  --lns-border:     rgba(255,255,255,.07);
  --lns-border-2:   rgba(255,255,255,.12);

  --lns-primary:    #F8AF3E;
  --lns-primary-d:  #d9922a;
  --lns-text:       #e2e8f0;
  --lns-text-muted: #94a3b8;
  --lns-text-dim:   #64748b;

  --lns-green:      #10b981;
  --lns-green-bg:   rgba(16,185,129,.12);
  --lns-yellow:     #f59e0b;
  --lns-yellow-bg:  rgba(245,158,11,.12);
  --lns-red:        #ef4444;
  --lns-red-bg:     rgba(239,68,68,.12);
  --lns-gray-bg:    rgba(148,163,184,.1);

  --lns-radius:     12px;
  --lns-radius-sm:  8px;
  --lns-shadow:     0 8px 32px rgba(0,0,0,.35);
  --lns-transition: .2s cubic-bezier(.4,0,.2,1);

  --lns-max-width:  1160px;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--lns-bg);
  color: var(--lns-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--lns-primary); text-decoration: none; }
a:hover { color: var(--lns-primary-d); }

/* --- Accessibility: focus ring ---------------------------- */
:focus-visible {
  outline: 2px solid var(--lns-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Animations ------------------------------------------- */
@keyframes lns-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Layout ----------------------------------------------- */
.lns-container {
  width: 100%;
  max-width: var(--lns-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.lns-section {
  padding: 56px 0;
}

.lns-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--lns-text);
  margin-bottom: 4px;
}

.lns-section-sub {
  font-size: .85rem;
  color: var(--lns-text-muted);
  margin-bottom: 28px;
}

/* --- Container (shared with navbar/footer) ---------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navbar ----------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--lns-bg-2);
  border-bottom: 1px solid var(--lns-border);
  backdrop-filter: blur(12px);
}

/* Desktop: inner row (logo + hidden toggle) and nav side by side */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  flex-wrap: nowrap;
}

.navbar__inner {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar__logo img { height: 36px; }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar__nav a {
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background var(--lns-transition), color var(--lns-transition);
}

.navbar__nav a:hover,
.navbar__nav a.active {
  background: rgba(248,175,62,.15);
  color: var(--lns-primary);
}

.navbar__cta {
  background: var(--lns-primary) !important;
  color: #0b1f47 !important;
  border-radius: 8px;
  padding: 8px 18px !important;
  font-weight: 700 !important;
}
.navbar__cta:hover {
  background: var(--lns-primary-d) !important;
  color: #0b1f47 !important;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--lns-transition);
}

/* --- Hero -------------------------------------------------- */
.lns-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2d4a 50%, #0d2038 100%);
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--lns-border);
  position: relative;
  overflow: hidden;
}

.lns-hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248,175,62,.08) 0%, transparent 70%);
  pointer-events: none;
}

.lns-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--lns-primary);
  background: rgba(248,175,62,.1);
  border: 1px solid rgba(248,175,62,.25);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.lns-hero__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 12px;
}

.lns-hero__title span { color: var(--lns-primary); }

.lns-hero__desc {
  color: var(--lns-text-muted);
  font-size: .95rem;
  max-width: 520px;
  margin-bottom: 28px;
}

.lns-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* --- Stats Bar -------------------------------------------- */
.lns-stats-bar {
  background: var(--lns-surface);
  border-bottom: 1px solid var(--lns-border);
  padding: 24px 0;
}

.lns-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2px;
}

.stat-box {
  text-align: center;
  padding: 16px 12px;
  border-right: 1px solid var(--lns-border);
  transition: var(--lns-transition);
}

.stat-box:last-child { border-right: none; }
.stat-box:hover { background: var(--lns-surface-2); }

.stat-box__icon {
  font-size: 1.1rem;
  color: var(--lns-primary);
  display: block;
  margin-bottom: 6px;
}

.stat-box__value {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-box__label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lns-text-dim);
}

.stat-box--highlight .stat-box__value { color: var(--lns-primary); }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  padding: 11px 22px;
  border-radius: var(--lns-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--lns-transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--lns-primary);
  color: #111827;
  border-color: var(--lns-primary);
}
.btn--primary:hover {
  background: var(--lns-primary-d);
  border-color: var(--lns-primary-d);
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(248,175,62,.35);
}

.btn--outline {
  background: transparent;
  color: var(--lns-text);
  border-color: var(--lns-border-2);
}
.btn--outline:hover {
  border-color: var(--lns-primary);
  color: var(--lns-primary);
}

.btn--sm {
  font-size: .78rem;
  padding: 8px 16px;
}

.btn--ghost {
  background: transparent;
  color: var(--lns-text-muted);
  border-color: transparent;
  padding: 8px 12px;
}
.btn--ghost:hover { color: var(--lns-primary); }

/* --- Badges ----------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 50px;
}

.badge--green  { background: var(--lns-green-bg);  color: var(--lns-green); }
.badge--yellow { background: var(--lns-yellow-bg); color: var(--lns-yellow); }
.badge--red    { background: var(--lns-red-bg);    color: var(--lns-red); }
.badge--gray   { background: var(--lns-gray-bg);   color: var(--lns-text-muted); }
.badge--sm { font-size: .65rem; padding: 2px 7px; }

/* --- Categories Grid -------------------------------------- */
.lns-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.cat-card {
  background: var(--lns-surface);
  border: 1px solid var(--lns-border);
  border-radius: var(--lns-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--lns-transition);
}

.cat-card:hover {
  border-color: rgba(248,175,62,.25);
  transform: translateY(-3px);
  box-shadow: var(--lns-shadow);
}

.cat-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cat-card__name {
  font-size: .95rem;
  font-weight: 800;
  color: var(--lns-text);
  line-height: 1.25;
}

.cat-card__meta {
  display: flex;
  gap: 14px;
  font-size: .78rem;
  color: var(--lns-text-dim);
}

.cat-card__meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cat-card__meta i { color: var(--lns-primary); }

.cat-card__progress-label {
  font-size: .72rem;
  color: var(--lns-text-dim);
  margin-top: 4px;
  display: block;
}

.cat-card__btn { width: 100%; justify-content: center; margin-top: auto; }

.cat-card--inactive {
  opacity: .72;
  border-style: dashed;
}
.cat-card--inactive:hover {
  opacity: 1;
  border-color: rgba(248,175,62,.25);
}
.cat-card__inactive-msg {
  font-size: .78rem;
  color: var(--lns-text-dim);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.cat-card__soon {
  display: block;
  font-size: .75rem;
  color: var(--lns-text-muted);
  text-align: center;
  margin-top: auto;
  padding: 6px 0;
}

/* --- Progress Bar ----------------------------------------- */
.progress-bar-wrap {
  background: var(--lns-bg);
  border-radius: 10px;
  height: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--lns-primary), #f0c060);
  border-radius: 10px;
  transition: width .6s ease;
}

/* --- Activity Feed ---------------------------------------- */
.lns-activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.activity-col {
  background: var(--lns-surface);
  border: 1px solid var(--lns-border);
  border-radius: var(--lns-radius);
  overflow: hidden;
}

.activity-col__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--lns-border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lns-text-muted);
}

.activity-col__header i { color: var(--lns-primary); }

.activity-match {
  padding: 12px 20px;
  border-bottom: 1px solid var(--lns-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-match:last-child { border-bottom: none; }

.activity-match__cat {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lns-primary);
}

.activity-match__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
}

.activity-match__score {
  font-size: .9rem;
  font-weight: 800;
  color: var(--lns-text);
  text-align: center;
  min-width: 36px;
}

.activity-match__team { color: var(--lns-text-muted); }
.activity-match__team.winner { color: var(--lns-text); }
.text-right { text-align: right; }

.activity-match__date {
  font-size: .7rem;
  color: var(--lns-text-dim);
}

.activity-empty {
  padding: 24px 20px;
  font-size: .82rem;
  color: var(--lns-text-dim);
  text-align: center;
}

/* --- Tabs (categoria.php) --------------------------------- */
.lns-tabs {
  background: var(--lns-surface);
  border-bottom: 1px solid var(--lns-border);
  position: sticky;
  top: 60px;
  z-index: 90;
}

.lns-tabs__inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.lns-tabs__inner::-webkit-scrollbar { display: none; }

.tab-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  padding: 15px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--lns-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--lns-transition);
}

.tab-btn:hover { color: var(--lns-text); }
.tab-btn.active {
  color: var(--lns-primary);
  border-bottom-color: var(--lns-primary);
}

.tab-panel { display: none; padding: 36px 0; }
.tab-panel.active { display: block; animation: lns-fade-in .18s ease both; }

/* --- Category Header -------------------------------------- */
.lns-cat-header {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2d4a 100%);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--lns-border);
}

.lns-cat-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lns-text-muted);
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 20px;
  transition: var(--lns-transition);
}

.lns-cat-header__back:hover { color: var(--lns-primary); }

.lns-cat-header__title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.lns-cat-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.lns-cat-header__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--lns-text-muted);
}

.lns-cat-header__meta-item i { color: var(--lns-primary); }

/* --- Standings Table -------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--lns-radius);
  border: 1px solid var(--lns-border);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.standings-table thead {
  background: var(--lns-surface-2);
  border-bottom: 1px solid var(--lns-border-2);
}

.standings-table th {
  padding: 12px 10px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lns-text-muted);
  white-space: nowrap;
}

.standings-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--lns-border);
  color: var(--lns-text);
}

.standings-table tbody tr:last-child td { border-bottom: none; }
.standings-table tbody tr:hover td { background: var(--lns-surface-2); }

.col-pos  { width: 40px; text-align: center; font-weight: 700; }
.col-name { text-align: left; font-weight: 700; min-width: 160px; }
.col-num  { width: 40px; text-align: center; color: var(--lns-text-muted); }
.col-pts  { width: 48px; text-align: center; font-weight: 800; color: var(--lns-primary); font-size: .95rem; }

/* Posiciones */
.pos-gold   td:first-child { color: #fbbf24; }
.pos-silver td:first-child { color: #94a3b8; }
.pos-bronze td:first-child { color: #c2773a; }

.pos-gold   { background: rgba(251,191,36,.04); }
.pos-silver { background: rgba(148,163,184,.03); }

/* --- Jornadas --------------------------------------------- */
.jornadas { display: flex; flex-direction: column; gap: 10px; }

.jornada-block {
  background: var(--lns-surface);
  border: 1px solid var(--lns-border);
  border-radius: var(--lns-radius);
  overflow: hidden;
}

.jornada-block[open] { border-color: var(--lns-border-2); }
.jornada-block--done    { border-left: 3px solid var(--lns-green); }
.jornada-block--current { border-left: 3px solid var(--lns-primary); }

.jornada-block__header {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  transition: var(--lns-transition);
}

.jornada-block__header:hover { background: var(--lns-surface-2); }
.jornada-block__header::-webkit-details-marker { display: none; }

.jornada-block__header::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--lns-text-dim);
  border-bottom: 2px solid var(--lns-text-dim);
  transform: rotate(45deg);
  transition: transform var(--lns-transition);
  flex-shrink: 0;
}

details[open] > .jornada-block__header::after { transform: rotate(-135deg); }

.jornada-block__num {
  font-size: .85rem;
  font-weight: 800;
  color: var(--lns-text);
  flex: 1;
}

.jornada-block__date {
  font-size: .78rem;
  color: var(--lns-text-dim);
}

.jornada-block__progress {
  font-size: .72rem;
  font-weight: 700;
  color: var(--lns-text-dim);
  background: var(--lns-bg);
  padding: 2px 8px;
  border-radius: 50px;
}

.jornada-block__body { border-top: 1px solid var(--lns-border); }

/* --- Match Row -------------------------------------------- */
.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--lns-border);
  font-size: .85rem;
}

.match-row:last-child { border-bottom: none; }
.match-row:hover { background: var(--lns-surface-2); }

.match-row__team {
  font-weight: 600;
  color: var(--lns-text-muted);
}

.match-row__team--winner { color: var(--lns-text); font-weight: 700; }
.match-row__team--right  { text-align: right; }

.match-row__score {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.match-row__sets {
  font-size: .95rem;
  font-weight: 800;
  color: var(--lns-text);
  min-width: 40px;
  text-align: center;
}

.match-row--bye {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: .82rem;
  color: var(--lns-text-dim);
  border-bottom: 1px solid var(--lns-border);
}

/* --- Normativa -------------------------------------------- */
.normativa { max-width: 720px; }

.normativa__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lns-primary);
  margin: 24px 0 8px;
}

.normativa__title:first-child { margin-top: 0; }

.normativa__text {
  font-size: .88rem;
  color: var(--lns-text-muted);
  line-height: 1.7;
}

/* --- Inscripción ------------------------------------------ */
.inscripcion-block {
  max-width: 520px;
  margin: 0 auto;
  background: var(--lns-surface);
  border: 1px solid var(--lns-border);
  border-radius: var(--lns-radius);
  padding: 32px;
  text-align: center;
}

.inscripcion-block h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.inscripcion-block p {
  font-size: .88rem;
  color: var(--lns-text-muted);
  margin-bottom: 24px;
}

/* --- Empty state ------------------------------------------ */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--lns-text-dim);
  font-size: .88rem;
}

/* --- Footer ----------------------------------------------- */
.footer {
  background: #060f23;
  color: rgba(255,255,255,.55);
  font-size: .85rem;
}

.footer__top {
  padding: 48px 0 36px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer__brand img { height: 32px; margin-bottom: 14px; }
.footer__brand p {
  font-size: .82rem;
  line-height: 1.6;
  max-width: 220px;
}

.footer__heading {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.85);
  margin-bottom: 14px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__links a {
  color: rgba(255,255,255,.5);
  transition: color var(--lns-transition);
}
.footer__links a:hover { color: var(--lns-primary); }

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.55);
  font-size: 1rem;
  transition: var(--lns-transition);
}

.footer__social a:hover {
  background: var(--lns-primary);
  color: #0b1f47;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 0;
  font-size: .8rem;
}

.footer__bottom a { color: rgba(255,255,255,.4); }
.footer__bottom a:hover { color: var(--lns-primary); }

/* --- Category Header extras ------------------------------- */
.lns-cat-header__desc {
  font-size: .85rem;
  color: var(--lns-text-muted);
  max-width: 560px;
  margin-bottom: 16px;
  line-height: 1.55;
}

/* --- Tab panel header ------------------------------------- */
.tab-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.tab-panel__header .lns-section-title { margin-bottom: 0; }

.tab-panel__progress {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tab-panel__progress span {
  font-size: .75rem;
  color: var(--lns-text-dim);
  white-space: nowrap;
}

.tab-panel__progress .progress-bar-wrap { width: 100px; }

/* --- Standings: zone indicators --------------------------- */
tr.zone-up   { border-left: 3px solid var(--lns-green); }
tr.zone-down { border-left: 3px solid var(--lns-red); }

tr.zone-divider td {
  height: 3px;
  padding: 0 !important;
  background: rgba(239,68,68,.15);
  border-bottom: none !important;
}

/* --- Zone legend ------------------------------------------ */
.zone-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--lns-surface);
  border: 1px solid var(--lns-border);
  border-radius: var(--lns-radius-sm);
}

.zone-legend__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--lns-text-muted);
}

.zone-legend__item--up   i { color: var(--lns-green); }
.zone-legend__item--down i { color: var(--lns-red); }

/* --- Inscripción extras ----------------------------------- */
.inscripcion-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0 24px;
  padding: 16px;
  background: var(--lns-bg);
  border-radius: var(--lns-radius-sm);
  border: 1px solid var(--lns-border);
  text-align: left;
}

.inscripcion-info__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--lns-text-muted);
}

.inscripcion-info__item i { color: var(--lns-primary); flex-shrink: 0; margin-top: 2px; }

.inscripcion-soon {
  color: var(--lns-text-dim);
  font-size: .82rem;
  margin-bottom: 16px;
}

.inscripcion-wa {
  display: block;
  margin-top: 12px;
  text-align: center;
}

/* --- Info Section ----------------------------------------- */
.lns-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--lns-surface);
  border: 1px solid var(--lns-border);
  border-radius: var(--lns-radius);
}

.info-item i {
  font-size: 1.3rem;
  color: var(--lns-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item strong {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lns-text-dim);
  margin-bottom: 4px;
}

.info-item span {
  font-size: .88rem;
  color: var(--lns-text);
  line-height: 1.45;
}

.info-item span a {
  color: var(--lns-primary);
}

/* --- Standings detail modal (mobile) ---------------------- */
.stn-modal {
  display: none;
}

.stn-modal.is-open {
  display: block;
}

.stn-modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(3px);
}

.stn-modal__sheet {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2001;
  background: var(--lns-surface);
  border: 1px solid var(--lns-border-2);
  border-radius: var(--lns-radius);
  width: calc(100% - 32px);
  max-width: 400px;
  max-height: 82vh;
  max-height: 82dvh;
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -50%) scale(.94);
  opacity: 0;
  transition: transform .2s cubic-bezier(.4,0,.2,1), opacity .18s ease;
}

.stn-modal.is-open .stn-modal__sheet {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.stn-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--lns-border);
  flex-shrink: 0;
}

.stn-modal__pos {
  font-size: .72rem;
  font-weight: 800;
  color: var(--lns-text-dim);
  background: var(--lns-bg);
  padding: 3px 10px;
  border-radius: 50px;
  flex-shrink: 0;
}

.stn-modal__name {
  font-size: .98rem;
  font-weight: 800;
  color: var(--lns-text);
  flex: 1;
  line-height: 1.25;
}

.stn-modal__close {
  background: none;
  border: none;
  color: var(--lns-text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
  transition: color var(--lns-transition);
}

.stn-modal__close:hover { color: var(--lns-text); }

.stn-modal__stats {
  overflow-y: auto;
  flex: 1;
}

.stn-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--lns-border);
}

.stn-modal__row--pts {
  padding: 16px 20px;
  background: var(--lns-surface-2);
  border-bottom: 2px solid var(--lns-border-2);
}

.stn-modal__group + .stn-modal__group {
  border-top: 2px solid var(--lns-border-2);
}

.stn-modal__group .stn-modal__row:last-child {
  border-bottom: none;
}

.stn-modal__row--derived {
  background: rgba(255,255,255,.02);
}

.stn-modal__row-label {
  font-size: .83rem;
  color: var(--lns-text-muted);
}

.stn-modal__row--pts .stn-modal__row-label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--lns-text);
}

.stn-modal__row-val {
  font-size: .95rem;
  font-weight: 800;
  color: var(--lns-text);
  white-space: nowrap;
}

.stn-modal__row--pts .stn-modal__row-val {
  font-size: 1.6rem;
  color: var(--lns-primary);
}

/* --- Match row detail ------------------------------------- */
.match-row__detail {
  font-size: .68rem;
  color: var(--lns-text-dim);
  letter-spacing: .02em;
}

.match-row__notes {
  font-size: .7rem;
  color: var(--lns-yellow);
  font-style: italic;
}

/* --- Responsive navbar/footer ----------------------------- */
@media (max-width: 960px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Container wraps to two rows: [inner row] then [nav menu] */
  .navbar .container {
    height: auto;
    flex-wrap: wrap;
    padding: 0;
  }

  .navbar__inner {
    width: 100%;
    height: 64px;
    padding: 0 20px;
    justify-content: space-between;
  }

  .navbar__nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 12px 10px;
    border-top: 1px solid var(--lns-border);
  }
  .navbar__nav.is-open { display: flex; }
  .navbar__nav a { padding: 11px 8px; }
  .navbar__toggle { display: flex; }

  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .lns-activity-grid     { grid-template-columns: 1fr; }
  .lns-categories-grid   { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .lns-info-grid         { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 700px) {
  /* Category header */
  .lns-cat-header        { padding: 32px 0 24px; }
  .lns-cat-header__meta  { gap: 10px; }
  .lns-cat-header__meta-item { font-size: .78rem; }

  /* Tab panel */
  .tab-panel             { padding: 24px 0; }
  .tab-panel__header     { flex-direction: column; align-items: flex-start; }
  .tab-panel__progress   { align-self: stretch; }
  .tab-panel__progress .progress-bar-wrap { width: 100%; }

  /* Zone legend */
  .zone-legend           { gap: 12px; }

  /* Inscripción */
  .inscripcion-block     { padding: 24px 20px; }

  /* Info grid */
  .lns-info-grid         { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .lns-hero              { padding: 40px 0 32px; }
  .lns-section           { padding: 36px 0; }
  .lns-stats-grid        { grid-template-columns: repeat(3, 1fr); }
  .stat-box              { border-right: none; border-bottom: 1px solid var(--lns-border); }
  .standings-table th,
  .standings-table td    { padding: 10px 6px; }
  .col-num               { display: none; }
  .col-num:nth-child(3), /* PJ */
  .col-num:nth-child(4), /* PG */
  .col-pts               { display: table-cell; }
  tr.zone-divider        { display: none; }       /* avoid orphan separator row */

  /* Tap affordance */
  .standings-table tbody tr:not(.zone-divider) { cursor: pointer; }
  .standings-table tbody tr:not(.zone-divider):active { background: var(--lns-surface-2) !important; }
  .standings-table tbody tr:not(.zone-divider) .col-pts::after {
    content: ' \203A';
    color: var(--lns-text-dim);
    font-size: .8rem;
  }
}

@media (max-width: 440px) {
  /* Hero: stack actions vertically */
  .lns-hero__actions     { flex-direction: column; }
  .lns-hero__actions .btn { width: 100%; justify-content: center; }

  /* no-op: brand name removed from navbar */

  /* Match row: tighter */
  .match-row             { gap: 6px; padding: 10px 12px; font-size: .78rem; }
  .match-row__sets       { min-width: 30px; font-size: .88rem; }

  /* Inscripción */
  .inscripcion-block     { padding: 20px 16px; }
}
