/* ============================================================================
   CRIPTOBID — Estilos completos
   Identidad: crypto/neon · negro absoluto · azul sintético digital
   ============================================================================ */

:root {
  --bg:        #000000;
  --bg2:       #070a10;
  --panel:     rgba(8,12,18,.72);
  --line:      rgba(0,200,255,.22);
  --line-soft: rgba(0,200,255,.10);
  --blue:      #00c8ff;
  --blue2:     #0084e6;
  --pale:      #c9ecff;
  --cyan:      #35e7ff;
  --text:      #ffffff;
  --muted:     #8899aa;
  --danger:    #ff5c6c;
  --disp:      'Orbitron', monospace;
  --body:      'Inter', system-ui, sans-serif;
  --num:       'Space Grotesk', monospace;
  --glow-text: 0 0 10px #00c8ff, 0 0 20px rgba(0,200,255,.55), 0 0 40px rgba(0,200,255,.25);
  --glow-box:  0 0 30px rgba(0,200,255,.16), inset 0 0 30px rgba(0,200,255,.05);
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
}

/* ========== RESET ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
::selection { background: var(--blue); color: #000; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #04060a; }
::-webkit-scrollbar-thumb {
  background: #10283b;
  border-radius: 6px;
  border: 2px solid #04060a;
}
::-webkit-scrollbar-thumb:hover { background: var(--blue2); }

/* ========== UTILITARIOS ========== */
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
section { scroll-margin-top: 96px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hidden { display: none !important; }

/* ========== FONDOS DECORATIVOS ========== */
.cyber-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,200,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
}
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 80% -5%, rgba(53,231,255,.06), transparent 60%),
    radial-gradient(800px 460px at 10% 25%, rgba(0,200,255,.05), transparent 60%);
}
header, main, footer, #toasts, #fab {
  position: relative;
  z-index: 2;
}

/* ========== GLOW CARD ========== */
.glow-card {
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--glow-box);
}
.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(0,200,255,.65), rgba(53,231,255,.25) 38%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ========== HEADER ========== */
#header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
#header.scrolled {
  background: rgba(0,0,0,.88);
  box-shadow: 0 10px 34px rgba(0,0,0,.7), 0 0 22px rgba(0,200,255,.08);
  border-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--disp);
    font-weight: 800;
    font-size: 1.22rem;
    letter-spacing: .08em;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.3);
    transition: box-shadow 0.3s;
}

.logo:hover .logo-img {
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.6);
}

.logo-text {
    display: inline-flex;
    align-items: center;
}

/* Responsive: reducir tamaño en móvil */
@media (max-width: 640px) {
    .logo-img {
        width: 30px;
        height: 30px;
    }
    .logo {
        font-size: 1.02rem;
    }
}
.logo .bid {
  color: var(--blue);
  text-shadow: var(--glow-text);
}

@keyframes blink { 50% { opacity: 0; } }

/* Selector de idioma */
.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 4px;
  background: rgba(0,0,0,.4);
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--disp);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 6px 14px;
  border-radius: 50px;
  transition: all .25s;
}
.lang-btn.active {
  background: var(--blue);
  color: #000;
  box-shadow: 0 0 14px rgba(0,200,255,.5);
}
.lang-btn:not(.active):hover {
  color: var(--pale);
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a,
.nav-links button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .05em;
  transition: color .2s, text-shadow .2s;
  padding: 6px 2px;
}
.nav-links a:hover,
.nav-links button:hover {
  color: var(--blue);
  text-shadow: 0 0 12px rgba(0,200,255,.6);
}
#burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--blue);
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  font-size: 1.1rem;
  margin-left: 14px;
}

/* ========== BOTONES ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  color: #000;
  font-family: var(--disp);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  border: none;
  border-radius: 50px;
  padding: 16px 40px;
  box-shadow: 0 0 30px rgba(0,200,255,.4);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: btnPulse 2.8s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 22px rgba(0,200,255,.4); }
  50% { box-shadow: 0 0 46px rgba(0,200,255,.7); }
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 55px rgba(0,200,255,.65);
}
.btn-primary:active { transform: scale(.97); }
.btn-primary.sm {
  padding: 10px 22px;
  font-size: .74rem;
  animation: none;
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  animation: none !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 15px 32px;
  font-weight: 600;
  font-size: .92rem;
  transition: border-color .25s, box-shadow .25s, background .25s, transform .25s;
}
.btn-secondary:hover {
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(0,200,255,.3);
  background: rgba(0,200,255,.06);
  transform: translateY(-2px);
}

/* ========== HERO ========== */
#hero {
  padding: 88px 0 64px;
  text-align: center;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--disp);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .34em;
  color: var(--cyan);
  border: 1px solid rgba(53,231,255,.3);
  border-radius: 50px;
  padding: 8px 20px;
  background: rgba(53,231,255,.05);
  box-shadow: 0 0 18px rgba(53,231,255,.12);
}
.hero-title {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.8vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: .03em;
  margin: 26px 0 18px;
  color: var(--blue);
  text-shadow: var(--glow-text);
  min-height: 2.3em;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  animation: neonFlicker 4.5s infinite;
}
@keyframes neonFlicker {
  0%, 100% {
    text-shadow: 0 0 10px #00c8ff, 0 0 22px rgba(0,200,255,.6), 0 0 44px rgba(0,200,255,.28);
  }
  48% {
    text-shadow: 0 0 6px #00c8ff, 0 0 14px rgba(0,200,255,.4), 0 0 30px rgba(0,200,255,.16);
  }
  50% {
    text-shadow: 0 0 14px #00c8ff, 0 0 34px rgba(0,200,255,.8), 0 0 70px rgba(0,200,255,.4);
  }
  52% {
    text-shadow: 0 0 6px #00c8ff, 0 0 14px rgba(0,200,255,.4), 0 0 30px rgba(0,200,255,.16);
  }
}

.caret {
  display: inline-block;
  width: .55em;
  height: 1em;
  background: var(--blue);
  margin-left: 6px;
  box-shadow: var(--glow-text);
  animation: blink .9s steps(1) infinite;
  transform: translateY(.1em);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.caret.hidden {
  opacity: 0;
}

.hero-sub {
  color: var(--muted);
  font-weight: 300;
  font-size: 1.08rem;
  max-width: 58ch;
  margin: 0 auto;
}
.hero-sub b {
  color: var(--pale);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 38px 0;
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0,200,255,.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 22px;
  text-align: left;
  transition: transform .25s, box-shadow .25s;
}
.stat-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 26px rgba(0,200,255,.18);
}
.stat-pill .s-ico { font-size: 1.4rem; }
.stat-pill .s-val {
  font-family: var(--num);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--blue);
  text-shadow: 0 0 14px rgba(0,200,255,.45);
  line-height: 1.15;
}
.stat-pill .s-lab {
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-ctas {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== SECCIONES ========== */
.sec-head { margin-bottom: 34px; }
.sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--disp);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--blue);
  text-transform: uppercase;
}
.sec-eyebrow::after {
  content: '';
  flex: 0 0 70px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.sec-head h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  margin-top: 10px;
  color: #fff;
}
.sec-head h2 em {
  font-style: normal;
  color: var(--blue);
  text-shadow: 0 0 18px rgba(0,200,255,.5);
}
.sec-head p {
  color: var(--muted);
  font-weight: 300;
  margin-top: 8px;
  max-width: 62ch;
}

/* ========== ARENA ========== */
#arena { padding: 64px 0 80px; }
.arena-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 420px);
  gap: 26px;
  align-items: start;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.panel-head h3 {
  font-family: var(--disp);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--disp);
  font-size: .6rem;
  letter-spacing: .22em;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 6px 13px;
  text-transform: uppercase;
}
.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  animation: pulse 1.2s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  background: rgba(0,0,0,.5);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 5px;
  margin-left: auto;
}
.tab-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--disp);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .06em;
  padding: 9px 20px;
  border-radius: 50px;
  transition: all .3s ease;
}
.tab-btn.active {
  background: var(--blue);
  color: #000;
  box-shadow: 0 0 18px rgba(0,200,255,.5);
}
.tab-btn:not(.active):hover { color: var(--pale); }

.rank-note {
  padding: 12px 22px 0;
  font-size: .74rem;
  color: var(--muted);
  font-weight: 300;
}
.rank-note b {
  color: var(--pale);
  font-weight: 600;
}

/* Ranking list */
#rank-list {
  list-style: none;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 640px;
  overflow-y: auto;
}
.rk-row {
  display: grid;
  grid-template-columns: 58px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.015);
  transition: transform .2s, border-color .2s, background .2s;
  animation: rowIn .45s ease both;
  position: relative;
}
@keyframes rowIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.rk-row:hover {
  transform: translateX(6px);
  border-color: var(--line);
  background: rgba(0,200,255,.05);
}
.rk-row.flash {
  animation: rowFlash 1.1s ease both;
}
@keyframes rowFlash {
  0% { background: rgba(0,200,255,.3); border-color: var(--blue); box-shadow: 0 0 24px rgba(0,200,255,.4); }
  100% { background: rgba(255,255,255,.015); }
}
.rk-row.is-user {
  border-color: var(--blue2);
  background: rgba(0,200,255,.09);
  box-shadow: inset 0 0 24px rgba(0,200,255,.07);
}
.rk-row.mv-up::after,
.rk-row.mv-down::after {
  position: absolute;
  right: -4px;
  top: -10px;
  font-family: var(--disp);
  font-size: .7rem;
  animation: mvFade 2.4s ease forwards;
  pointer-events: none;
}
.rk-row.mv-up::after { content: '▲'; color: var(--blue); text-shadow: 0 0 8px var(--blue); }
.rk-row.mv-down::after { content: '▼'; color: #ff7a7a; text-shadow: 0 0 8px #ff7a7a; }
@keyframes mvFade {
  0% { opacity: 0; transform: translateY(6px); }
  15% { opacity: 1; transform: none; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

.rk-pos {
  font-family: var(--num);
  font-weight: 700;
  font-size: 1.3rem;
  text-align: center;
  color: var(--muted);
}
.rk-pos .medal { font-size: 1.5rem; }
.rk-pos .pos-num { color: #5f7285; font-size: 1rem; }

.rk-info { min-width: 0; }
.rk-top {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.rk-url {
  font-family: var(--num);
  font-weight: 700;
  font-size: .98rem;
  color: #fff;
  transition: color .2s, text-shadow .2s;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30ch;
  white-space: nowrap;
}
.rk-url:hover {
  color: var(--blue);
  text-shadow: 0 0 12px rgba(0,200,255,.6);
}
.rk-wallet {
  display: block;
  margin-top: 2px;
  font-family: var(--num);
  font-weight: 400;
  font-size: .74rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.you-tag {
  background: var(--blue);
  color: #000;
  font-family: var(--disp);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .16em;
  padding: 2px 8px;
  border-radius: 4px;
}
.chip {
  font-size: .62rem;
  padding: 3px 9px;
  border-radius: 50px;
  border: 1px solid var(--line);
  color: var(--pale);
  background: rgba(0,200,255,.07);
  white-space: nowrap;
  font-weight: 600;
}
.rk-amt { text-align: right; }
.rk-amt .amt {
  display: block;
  font-family: var(--num);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blue);
  text-shadow: 0 0 12px rgba(0,200,255,.5);
  white-space: nowrap;
}
.rk-amt .usdt {
  font-family: var(--disp);
  font-size: .55rem;
  letter-spacing: .28em;
  color: #4e6a85;
}

/* ========== ÍCONOS DE ACCIÓN EN EL RANKING (EXPLORAR + REPORTAR) ========== */
.rk-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.rk-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(0, 200, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.2);
  color: var(--blue);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0;
}

.rk-icon-btn:hover {
  background: rgba(0, 200, 255, 0.15);
  border-color: var(--blue);
  color: var(--cyan);
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.4);
}

.rk-icon-btn.report-link:hover {
  background: rgba(231, 76, 60, 0.15);
  border-color: #e74c3c;
  color: #e74c3c;
  box-shadow: 0 0 12px rgba(231, 76, 60, 0.4);
}

.loading-row {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}
.empty-row {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
  font-weight: 300;
}

.more-wrap {
  padding: 10px 18px 20px;
  text-align: center;
}
#btn-more {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  padding: 12px;
  border-radius: var(--r-sm);
  font-family: var(--disp);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .1em;
  transition: all .25s;
}
#btn-more:hover:not(:disabled) {
  color: var(--blue);
  border-color: var(--blue2);
  box-shadow: 0 0 16px rgba(0,200,255,.2);
}
#btn-more:disabled {
  opacity: .45;
  cursor: default;
}

/* ========== PANEL DE PUJA ========== */
#panel-puja { position: sticky; top: 92px; }
.bid-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.field label {
  display: block;
  font-family: var(--disp);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.input-wrap { position: relative; }
.input-wrap .ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue2);
  font-size: .9rem;
  pointer-events: none;
}
.field input {
  width: 100%;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: #fff;
  padding: 13px 14px 13px 42px;
  font-family: var(--body);
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #3d5162; }
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 0 18px rgba(0,200,255,.25);
}
.field input.shake {
  animation: shake .45s ease;
  border-color: var(--danger) !important;
  box-shadow: 0 0 14px rgba(255,92,108,.35) !important;
}
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
.amt-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--disp);
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--muted);
  pointer-events: none;
}

/* ========== SELECTOR (select) ========== */
.field select {
  width: 100%;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: #fff;
  padding: 13px 14px 13px 42px;
  font-family: var(--body);
  font-size: .95rem;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300c8ff' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 0 18px rgba(0,200,255,.25);
}
.field select option {
  background: #0a0a0f;
  color: #fff;
  padding: 10px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.quick {
  background: rgba(0,0,0,.5);
  border: 1px solid var(--line);
  color: var(--pale);
  border-radius: var(--r-sm);
  padding: 10px 4px;
  font-family: var(--num);
  font-weight: 700;
  font-size: .82rem;
  transition: all .18s;
}
.quick:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 14px rgba(0,200,255,.3);
  transform: translateY(-2px);
}
.quick:active { transform: scale(.93); }

.info-box {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(0,200,255,.03);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .8rem;
}
.info-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 300;
}
.info-line b {
  color: var(--pale);
  font-family: var(--num);
  font-weight: 700;
}
.info-line.hot b {
  color: var(--blue);
  text-shadow: 0 0 10px rgba(0,200,255,.45);
}
#pos-preview {
  border-top: 1px dashed var(--line-soft);
  padding-top: 9px;
  font-size: .79rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
}
#pos-preview b {
  color: var(--blue);
  font-family: var(--num);
}
#pos-preview .pv-w {
  color: #5f7285;
  font-family: var(--num);
  font-size: .72rem;
}

.chain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.chain-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(0,0,0,.5);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  transition: all .2s;
}

/* ========== LOGOS DE REDES ========== */
.chain-btn .chain-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: none;
    border-radius: 6px;
    display: block;
    transition: transform 0.2s, filter 0.2s;
}

.chain-btn:hover .chain-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.6));
}

.chain-btn.sel .chain-logo {
    filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.8));
}

.chain-btn.sel {
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 14px rgba(0,200,255,.25);
  background: rgba(0,200,255,.07);
}
.chain-btn.sel::after {
  content: '✓';
  margin-left: auto;
  color: var(--blue);
  font-weight: 800;
}

#btn-bid {
  width: 100%;
  padding: 18px;
  font-size: .98rem;
}
.bid-fine {
  font-size: .68rem;
  color: #41586a;
  text-align: center;
  font-weight: 300;
  letter-spacing: .03em;
}

/* ========== LOGROS ========== */
#logros { padding: 70px 0; }
#logros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.logro-card {
  border-radius: var(--r-md);
  padding: 24px 16px 20px;
  text-align: center;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.logro-card .lg-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgba(0,200,255,.45));
}
.logro-card h3 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: .86rem;
  letter-spacing: .04em;
  color: #fff;
  margin-bottom: 6px;
}
.logro-card .lg-desc {
  font-size: .73rem;
  color: var(--muted);
  font-weight: 300;
  min-height: 2.7em;
}
.lg-status {
  margin-top: 12px;
  font-family: var(--disp);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.logro-card.on {
  border-color: rgba(0,200,255,.45);
  box-shadow: 0 0 24px rgba(0,200,255,.14), inset 0 0 28px rgba(0,200,255,.05);
}
.logro-card.on .lg-status { color: var(--blue); }
.logro-card.on:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 36px rgba(0,200,255,.25);
}
.logro-card.off {
  border-style: dashed;
  border-color: #1c2a33;
  background: rgba(8,10,14,.5);
}
.logro-card.off .lg-icon { filter: grayscale(1); opacity: .4; }
.logro-card.off h3 { color: #6d7f8e; }
.logro-card.off .lg-status { color: #3d5162; }
.logro-card.just { animation: unlockFlash 1.5s ease; }
@keyframes unlockFlash {
  0% { box-shadow: 0 0 0 0 rgba(0,200,255,.9); }
  55% { box-shadow: 0 0 64px 20px rgba(0,200,255,.35); }
  100% { box-shadow: 0 0 24px rgba(0,200,255,.14); }
}
.tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 220px;
  background: #04101c;
  border: 1px solid var(--blue2);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: .72rem;
  color: var(--pale);
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 30;
  box-shadow: 0 10px 30px rgba(0,0,0,.7), 0 0 18px rgba(0,200,255,.2);
}
.tip b { color: var(--blue); }
.tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--blue2);
}
.logro-card:hover .tip,
.logro-card:focus .tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== REGLAS ========== */
#reglas { padding: 70px 0; }
.rules-wrap {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rule {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(8,12,18,.6);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .25s, box-shadow .25s;
}
.rule.open {
  border-color: var(--blue2);
  box-shadow: 0 0 24px rgba(0,200,255,.12);
}
.rule-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  background: none;
  border: none;
  color: #fff;
  padding: 19px 22px;
  text-align: left;
  font-family: var(--disp);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .03em;
}
.rule-head .r-ico {
  font-size: 1.35rem;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: rgba(0,200,255,.05);
  flex: none;
}
.rule-head .r-arrow {
  margin-left: auto;
  color: var(--blue);
  transition: transform .35s ease;
  font-size: .85rem;
}
.rule.open .r-arrow { transform: rotate(180deg); }
.rule-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s ease;
}
.rule.open .rule-body { grid-template-rows: 1fr; }
.rule-body-inner { overflow: hidden; }
.rule-body p {
  padding: 0 22px 20px 83px;
  color: var(--muted);
  font-size: .87rem;
  font-weight: 300;
}
.rule-body p b {
  color: var(--blue);
  font-weight: 600;
}

/* ========== CTA FINAL ========== */
#cta-final { padding: 80px 0; }
.cta-box {
  border: 1px solid var(--blue2);
  border-radius: 24px;
  text-align: center;
  padding: 70px 30px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 320px at 50% -18%, rgba(0,200,255,.2), transparent 70%),
    linear-gradient(180deg, rgba(0,132,230,.12), rgba(0,0,0,.6) 55%, #000);
}
.cta-box::before,
.cta-box::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(0,200,255,.22);
  border-radius: 50%;
}
.cta-box::before { top: -90px; left: -90px; }
.cta-box::after { bottom: -90px; right: -90px; }
.cta-box h2 {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  color: var(--blue);
  text-shadow: var(--glow-text);
  letter-spacing: .03em;
  animation: neonFlicker 5s infinite;
}
.cta-box p {
  color: var(--muted);
  font-weight: 300;
  margin: 16px auto 32px;
  max-width: 46ch;
}
.cta-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.cta-total {
  margin-top: 34px;
  font-family: var(--disp);
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta-total b { color: var(--pale); }

/* ========== FOOTER ========== */
footer {
  border-top: 1px solid var(--line);
  background: #020406;
  padding: 56px 0 26px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.foot-brand p {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 300;
  margin-top: 14px;
  max-width: 36ch;
}
.foot-col h4 {
  font-family: var(--disp);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--pale);
  margin-bottom: 16px;
}
.foot-col a {
  display: block;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 300;
  padding: 5px 0;
  transition: color .2s, transform .2s;
}
.foot-col a:hover {
  color: var(--blue);
  transform: translateX(5px);
}
.socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.socials a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.1rem;
  transition: all .25s;
}
.socials a:hover {
  color: #000;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 22px rgba(0,200,255,.5);
  transform: translateY(-4px);
}
.foot-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: #3d5162;
  font-size: .76rem;
  font-weight: 300;
}
.foot-bottom b { color: var(--blue2); font-weight: 600; }
.foot-bottom a { color: #3d5162; }
.foot-bottom a:hover { color: var(--blue); }

/* ========== TOASTS / FAB / CONFETI ========== */
#toasts {
  position: fixed;
  top: 88px;
  right: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(370px, calc(100vw - 36px));
}
.toast {
  border: 1px solid var(--blue2);
  background: rgba(4,12,20,.96);
  color: #fff;
  font-size: .84rem;
  font-weight: 300;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,.7), 0 0 20px rgba(0,200,255,.2);
  animation: toastIn .4s ease both;
  backdrop-filter: blur(8px);
}
.toast b { color: var(--blue); font-weight: 600; }
.toast.error {
  border-color: var(--danger);
  box-shadow: 0 8px 32px rgba(0,0,0,.7), 0 0 20px rgba(255,92,108,.25);
}
.toast.out { animation: toastOut .45s ease both; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(34px); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(34px); }
}
.confetti {
  position: fixed;
  z-index: 300;
  pointer-events: none;
  border-radius: 2px;
  animation: confettiFly ease-out forwards;
}
@keyframes confettiFly {
  to {
    transform: translate(var(--dx), var(--dy)) rotate(var(--r));
    opacity: 0;
  }
}
#fab {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 80;
  border: none;
  border-radius: 50px;
  background: var(--blue);
  color: #000;
  font-family: var(--disp);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .05em;
  padding: 15px 26px;
  box-shadow: 0 0 30px rgba(0,200,255,.55);
  animation: btnPulse 2.4s infinite;
}

/* ========== REVEAL ON SCROLL ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .arena-grid {
    grid-template-columns: 1.05fr .95fr;
    gap: 16px;
  }
  #panel-puja { position: static; }
  #logros-grid { grid-template-columns: repeat(2, 1fr); }
  .bid-body { padding: 16px; }
  #rank-list { max-height: 560px; }
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(0,0,0,.97);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a,
  .nav-links button {
    padding: 14px 24px;
    width: 100%;
    text-align: left;
  }
  #burger { display: block; }
}
@media (max-width: 760px) {
  .arena-grid { grid-template-columns: 1fr; }
  #fab { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  #particles { display: none; }
  #hero { padding: 56px 0 44px; }
  .hero-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    min-height: 3em;
  }
  .hero-stats { flex-direction: column; align-items: stretch; }
  .stat-pill { justify-content: flex-start; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { width: 100%; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .chain-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  #logros-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .logro-card { padding: 16px 10px; }
  .rk-row {
    grid-template-columns: 44px 1fr auto;
    gap: 9px;
    padding: 11px 11px;
  }
  .rk-url { max-width: 16ch; }
  .rule-body p { padding-left: 22px; }
  #rank-list { max-height: none; }
  #toasts {
    top: auto;
    bottom: 84px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
  .tip { width: 180px; }
  .logo { font-size: 1.02rem; }
  
  /* Íconos de acción en móvil */
  .rk-actions {
    gap: 4px;
  }
  .rk-icon-btn {
    width: 26px;
    height: 26px;
    font-size: 0.65rem;
  }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  #particles { display: none; }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========== CONTADOR ONLINE ========== */
.online-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 10px #2ecc71, 0 0 20px rgba(46, 204, 113, 0.5);
    animation: onlinePulse 2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes onlinePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px #2ecc71, 0 0 20px rgba(46, 204, 113, 0.5);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.15);
        box-shadow: 0 0 15px #2ecc71, 0 0 30px rgba(46, 204, 113, 0.8);
    }
}

.online-dot.low {
    background: #f39c12;
    box-shadow: 0 0 10px #f39c12, 0 0 20px rgba(243, 156, 18, 0.5);
}

.online-dot.high {
    background: #2ecc71;
    box-shadow: 0 0 15px #2ecc71, 0 0 30px rgba(46, 204, 113, 0.7);
}

#st-online {
    color: #2ecc71;
    text-shadow: 0 0 12px rgba(46, 204, 113, 0.6);
    transition: color 0.3s;
}

#st-online.updating {
    animation: numberFlash 0.6s ease;
}

@keyframes numberFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); color: #fff; }
    100% { transform: scale(1); }
}

.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 4px 10px;
    border-radius: 50px;
    font-family: var(--num);
    font-size: 0.8rem;
    color: #2ecc71;
    font-weight: 700;
}

.online-badge .online-dot {
    width: 7px;
    height: 7px;
}

/* ============================================================================
   POPUP DE LOGRO DESBLOQUEADO
   ============================================================================ */

.achievement-popup {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    max-width: 90vw;
}

.achievement-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.achievement-popup-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, rgba(8,12,18,0.98), rgba(0,20,35,0.98));
    border: 2px solid var(--blue);
    border-radius: var(--r-lg);
    padding: 20px 28px;
    box-shadow:
        0 0 40px rgba(0,200,255,0.4),
        0 20px 60px rgba(0,0,0,0.8),
        inset 0 0 30px rgba(0,200,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 320px;
    animation: achievementSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes achievementSlideIn {
    0% {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.achievement-popup-glow {
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: linear-gradient(45deg, var(--blue), var(--cyan), var(--blue));
    background-size: 200% 200%;
    animation: achievementGlow 3s ease infinite;
    z-index: -1;
    opacity: 0.6;
    filter: blur(8px);
}

@keyframes achievementGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.achievement-popup-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 20px rgba(0,200,255,0.6));
    animation: achievementBounce 1s ease infinite;
    flex-shrink: 0;
}

@keyframes achievementBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

.achievement-popup-info {
    flex: 1;
    min-width: 0;
}

.achievement-popup-title {
    font-family: var(--disp);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 6px;
    text-shadow: 0 0 12px rgba(53,231,255,0.6);
}

.achievement-popup-name {
    font-family: var(--disp);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--blue);
    text-shadow: 0 0 20px rgba(0,200,255,0.5);
    margin-bottom: 6px;
    line-height: 1.2;
}

.achievement-popup-url {
    font-family: var(--num);
    font-size: 0.85rem;
    color: var(--pale);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.achievement-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,200,255,0.1);
    border: 1px solid rgba(0,200,255,0.3);
    color: var(--blue);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: grid;
    place-items: center;
    padding: 0;
}

.achievement-popup-close:hover {
    background: rgba(0,200,255,0.25);
    border-color: var(--blue);
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .achievement-popup {
        top: 80px;
        left: 12px;
        right: 12px;
        transform: translateX(0) translateY(-30px);
        max-width: none;
    }
    
    .achievement-popup.show {
        transform: translateX(0) translateY(0);
    }
    
    .achievement-popup-content {
        padding: 16px 18px;
        gap: 12px;
        min-width: 0;
    }
    
    .achievement-popup-icon {
        font-size: 2.2rem;
    }
    
    .achievement-popup-name {
        font-size: 1.05rem;
    }
    
    .achievement-popup-url {
        font-size: 0.75rem;
    }
}

/* ============================================================================
   MARQUESINA DE CATEGORÍAS
   ============================================================================ */

/* ========== TEXTO INFORMATIVO DEL HERO ========== */
.hero-notice {
    max-width: 780px;
    margin: 32px auto 24px;
    padding: 18px 24px;
    background: rgba(0, 200, 255, 0.04);
    border: 1px solid rgba(0, 200, 255, 0.15);
    border-left: 3px solid var(--blue);
    border-radius: var(--r-md);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.7;
    text-align: left;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(0, 200, 255, 0.03);
    position: relative;
    overflow: hidden;
}

/* Efecto decorativo: línea de brillo */
.hero-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 200, 255, 0.5),
        transparent
    );
    animation: noticeGlow 4s ease-in-out infinite;
}

@keyframes noticeGlow {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.hero-notice strong {
    color: var(--pale);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
    .hero-notice {
        margin: 24px auto 20px;
        padding: 14px 18px;
        font-size: 0.82rem;
        line-height: 1.6;
        text-align: center;
    }
}

.categories-ticker {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 32px auto;
    height: 56px;
    overflow: hidden;
    border-radius: 50px;
    background: rgba(0, 200, 255, 0.03);
    border: 1px solid rgba(0, 200, 255, 0.15);
    backdrop-filter: blur(10px);
    cursor: grab;
    -webkit-backdrop-filter: blur(10px);
    touch-action: pan-y;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
}

.categories-ticker:active {
    cursor: grabbing;
}

.categories-ticker,
.ticker-track,
.ticker-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.ticker-hint {
    text-align: center;
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 8px;
    font-family: var(--num);
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 0 20px;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
    will-change: transform;
}

.categories-ticker:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.85rem;
    font-family: var(--disp);
    padding: 0 20px;
    height: 100%;
}

.ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 10px var(--blue);
    animation: tickerPulse 1.5s ease-in-out infinite;
}

@keyframes tickerPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(0, 200, 255, 0.05);
    border: 1px solid rgba(0, 200, 255, 0.2);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--num);
    font-weight: 600;
    transition: all 0.25s ease;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ticker-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.ticker-item:hover::before {
    transform: translateX(100%);
}

.ticker-item:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: var(--cat-color, var(--blue));
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 20px var(--cat-color-glow, rgba(0, 200, 255, 0.3));
    background: rgba(0, 200, 255, 0.1);
}

.ticker-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px var(--cat-color, var(--blue)));
}

.ticker-name {
    font-family: var(--disp);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--cat-color, #fff);
}

.ticker-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    border-radius: 50px;
    background: var(--cat-color, var(--blue));
    color: #000;
    font-family: var(--num);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.ticker-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 200, 255, 0.3);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .categories-ticker {
        margin: 24px auto;
        height: 48px;
    }
    
    .ticker-track {
        gap: 12px;
        padding: 0 16px;
    }
    
    .ticker-item {
        padding: 6px 14px;
        font-size: 0.78rem;
    }
    
    .ticker-icon {
        font-size: 0.95rem;
    }
    
    .ticker-name {
        font-size: 0.68rem;
    }
    
    .ticker-count {
        min-width: 24px;
        height: 20px;
        font-size: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    
    .ticker-track::-webkit-scrollbar {
        height: 4px;
    }
    
    .ticker-track::-webkit-scrollbar-thumb {
        background: rgba(0, 200, 255, 0.3);
        border-radius: 2px;
    }
}

/* ============================================================================
   PÁGINA DE CATEGORÍAS
   ============================================================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.category-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
}

.category-card-inner {
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.category-card:hover .category-card-inner {
    border-color: var(--cat-color);
    box-shadow: 0 12px 36px var(--cat-color-glow);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.category-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 12px var(--cat-color));
    flex-shrink: 0;
}

.category-title {
    font-family: var(--disp);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cat-color);
    margin-bottom: 4px;
    text-shadow: 0 0 12px var(--cat-color-glow);
}

.category-stats {
    font-size: 0.8rem;
    color: var(--muted);
    font-family: var(--num);
}

.category-description {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 300;
    margin-bottom: 16px;
    line-height: 1.5;
    flex: 1;
}

.category-top {
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    margin-top: auto;
}

.category-top-label {
    font-family: var(--disp);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.category-top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.8rem;
    gap: 10px;
}

.category-top-domain {
    font-family: var(--num);
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.category-top-amount {
    font-family: var(--num);
    color: var(--cat-color);
    font-weight: 700;
    flex-shrink: 0;
}

.category-empty {
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
    padding: 12px;
    font-style: italic;
}

/* ============================================================================
   PÁGINA DE TRANSPARENCIA
   ============================================================================ */

.transparency-tx-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.transparency-tx-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 200, 255, 0.08);
    transition: background 0.2s, transform 0.2s;
}

.transparency-tx-row:last-child {
    border-bottom: none;
}

.transparency-tx-row:hover {
    background: rgba(0, 200, 255, 0.04);
    transform: translateX(4px);
}

.transparency-tx-index {
    font-family: var(--num);
    font-weight: 700;
    color: var(--muted);
    text-align: center;
    font-size: 0.85rem;
}

.transparency-tx-info {
    min-width: 0;
}

.transparency-tx-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--num);
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.transparency-tx-url:hover {
    color: var(--blue);
    text-shadow: 0 0 12px rgba(0, 200, 255, 0.6);
}

.transparency-tx-meta {
    display: flex;
    gap: 14px;
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--muted);
    flex-wrap: wrap;
}

.transparency-tx-meta b {
    font-family: var(--num);
    color: var(--pale);
    font-weight: 700;
}

.transparency-tx-explorer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 6px;
    background: rgba(0, 200, 255, 0.05);
    color: var(--blue);
    font-family: var(--disp);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.transparency-tx-explorer:hover {
    background: rgba(0, 200, 255, 0.15);
    border-color: var(--blue);
    color: var(--cyan);
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.4);
}

/* Pasos de verificación */
.verify-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
    counter-reset: step-counter;
}

.verify-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(0, 200, 255, 0.1);
    border-radius: var(--r-md);
    background: rgba(0, 200, 255, 0.02);
    transition: border-color 0.2s, background 0.2s;
}

.verify-step:hover {
    border-color: rgba(0, 200, 255, 0.3);
    background: rgba(0, 200, 255, 0.05);
}

.verify-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    color: #000;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(0, 200, 255, 0.4);
}

.verify-step-content {
    flex: 1;
}

.verify-step-content h4 {
    font-family: var(--disp);
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.verify-step-content p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.verify-step-content code {
    font-family: var(--num);
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--pale);
    font-size: 0.85em;
}

@media (max-width: 640px) {
    .transparency-tx-row {
        grid-template-columns: 30px 1fr;
        gap: 10px;
        padding: 12px 14px;
    }
    .transparency-tx-explorer {
        grid-column: 2;
        justify-self: start;
        margin-top: 6px;
    }
    .verify-step {
        padding: 12px 14px;
        gap: 12px;
    }
    .verify-step-num {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* ============================================================================
   PÁGINA DE REPORTAR URL
   ============================================================================ */

.report-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.report-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-field label {
    font-family: var(--disp);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.report-field input,
.report-field select,
.report-field textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: #fff;
    padding: 12px 14px;
    font-family: var(--body);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.report-field input:focus,
.report-field select:focus,
.report-field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 1px var(--blue), 0 0 18px rgba(0, 200, 255, 0.2);
}

.report-field textarea {
    min-height: 120px;
    resize: vertical;
    font-family: var(--body);
}

.report-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300c8ff' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.report-field select option {
    background: #0a0a0f;
    color: #fff;
}

.report-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--blue);
    color: #000;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.4);
    margin-top: 10px;
}

.report-submit:hover {
    transform: scale(1.03);
    box-shadow: 0 0 50px rgba(0, 200, 255, 0.6);
}

.report-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.report-message {
    padding: 16px 20px;
    border-radius: var(--r-md);
    font-size: 0.95rem;
    display: none;
    margin-top: 20px;
}

.report-message.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.report-message.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* ========== BOTÓN DE TRANSPARENCIA (variante) ========== */
.btn-transparency {
    border-color: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.btn-transparency:hover {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.08);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.btn-transparency i {
    color: #2ecc71;
}

/* ========== BOTÓN DE VERIFICAR EN TRANSPARENCIA ========== */
.transparency-tx-explorer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 200, 255, 0.05);
    color: var(--blue);
    font-family: var(--disp);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.transparency-tx-explorer:hover {
    background: rgba(0, 200, 255, 0.15);
    border-color: var(--blue);
    color: var(--cyan);
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(0, 200, 255, 0.4);
}

/* ========== CONTADOR DE CLICKS EN EL RANKING ========== */
.rk-clicks {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-family: var(--num);
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.rk-clicks i {
    font-size: 0.85em;
    color: var(--blue2);
}

.rk-amt:hover .rk-clicks {
    color: var(--pale);
}

.rk-amt:hover .rk-clicks i {
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(53, 231, 255, 0.6);
}

/* ============================================================================
   HISTORIAL SEMANAL
   ============================================================================ */

.history-weeks {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.history-week-card {
    padding: 0;
    overflow: hidden;
}

.history-week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgba(0, 200, 255, 0.03);
    border-bottom: 1px solid rgba(0, 200, 255, 0.1);
    flex-wrap: wrap;
    gap: 12px;
}

.history-week-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--disp);
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue);
}

.history-week-date i {
    font-size: 1.1em;
}

.history-week-meta {
    display: flex;
    gap: 16px;
    font-family: var(--num);
    font-size: 0.85rem;
    color: var(--muted);
}

.history-week-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Top 3 */
.history-top3 {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.history-top3-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(0, 200, 255, 0.05);
    transition: background 0.2s;
}

.history-top3-item:hover {
    background: rgba(0, 200, 255, 0.03);
}

.history-top3-item.top1 {
    background: rgba(255, 215, 0, 0.03);
}

.history-top3-item.top1:hover {
    background: rgba(255, 215, 0, 0.06);
}

.history-top3-medal {
    font-size: 1.5rem;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.history-top3-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.history-top3-url {
    font-family: var(--num);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s, text-shadow 0.2s;
}

.history-top3-url:hover {
    color: var(--blue);
    text-shadow: 0 0 12px rgba(0, 200, 255, 0.6);
}

.history-top3-amount {
    font-family: var(--num);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--blue);
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.4);
    flex-shrink: 0;
}

/* Botón expandir */
.history-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-top: 1px dashed rgba(0, 200, 255, 0.15);
    color: var(--muted);
    font-family: var(--disp);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.history-expand-btn:hover {
    background: rgba(0, 200, 255, 0.05);
    color: var(--blue);
}

.history-expand-btn i {
    transition: transform 0.3s ease;
}

/* Lista completa */
.history-full-list {
    background: rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 5000px;
    }
}

.history-full-list-inner {
    padding: 8px 0;
}

.history-full-row {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 24px;
    border-bottom: 1px solid rgba(0, 200, 255, 0.03);
    transition: background 0.2s;
}

.history-full-row:hover {
    background: rgba(0, 200, 255, 0.03);
}

.history-full-row:last-child {
    border-bottom: none;
}

.history-full-pos {
    font-family: var(--num);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

.history-full-url {
    font-family: var(--num);
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.history-full-url:hover {
    color: var(--blue);
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.history-full-amount {
    font-family: var(--num);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--blue);
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 640px) {
    .history-week-header {
        padding: 16px 18px;
    }
    
    .history-week-date {
        font-size: 0.9rem;
    }
    
    .history-week-meta {
        font-size: 0.75rem;
        gap: 10px;
    }
    
    .history-top3-item {
        padding: 12px 18px;
        gap: 12px;
    }
    
    .history-top3-url {
        font-size: 0.9rem;
    }
    
    .history-top3-amount {
        font-size: 0.95rem;
    }
    
    .history-full-row {
        grid-template-columns: 40px 1fr auto;
        padding: 10px 18px;
        gap: 8px;
    }
    
    .history-full-url {
        font-size: 0.82rem;
    }
    
    .history-full-amount {
        font-size: 0.82rem;
    }
}

/* ============================================================
   BANNERS DE ANUNCIOS
   ============================================================ */

.banners-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 90; /* Debajo del header sticky (que suele ser 100+) */
}

/* -------- Banner base -------- */
.banner {
    display: flex;
    align-items: center;
    justify-content: center;      /* ⬅️ centra el contenido en el eje horizontal */
    gap: 16px;
    padding: 12px 24px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #0a0e1a;
    border-left: 4px solid rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease;
    position: relative;            /* ⬅️ para posicionar el link a la derecha */
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;      /* ⬅️ centra emoji + título + mensaje */
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;           /* ⬅️ por si hay saltos de línea */
}

.banner-emoji {
    font-size: 1.2em;
    line-height: 1;
    flex-shrink: 0;
}

.banner-title {
    font-weight: 700;
    white-space: nowrap;
}

.banner-message {
    font-weight: 400;
    opacity: 0.85;
}

.banner-link {
    position: absolute;            /* ⬅️ saca el botón del flujo y lo ancla a la derecha */
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.15);
    color: inherit;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
}

.banner-link:hover {
    background: rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) translateX(-2px);
}

/* -------- Tipos de banner -------- */

/* INFO — Cyan */
.banner-info {
    background: linear-gradient(90deg, #00c8ff 0%, #4dd4ff 100%);
    border-left-color: #0090c0;
}

/* SUCCESS — Verde */
.banner-success {
    background: linear-gradient(90deg, #2ecc71 0%, #55d98f 100%);
    border-left-color: #1e8e4e;
}

/* WARNING — Naranja */
.banner-warning {
    background: linear-gradient(90deg, #f39c12 0%, #f5b041 100%);
    border-left-color: #b57209;
}

/* DANGER — Rojo */
.banner-danger {
    background: linear-gradient(90deg, #e74c3c 0%, #ec7063 100%);
    border-left-color: #a93226;
    color: #fff; /* Texto blanco para contraste en rojo */
}

.banner-danger .banner-link {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.banner-danger .banner-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* CUSTOM — Color aplicado inline vía style="" */
.banner-custom {
    /* El color de fondo se aplica desde el template */
    border-left-color: rgba(0, 0, 0, 0.4);
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
    .banner {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .banner-content {
        gap: 6px;
        /* Deja espacio a la derecha para el botón */
        padding-right: 90px;
    }
    
    .banner-title {
        white-space: normal;
    }
    
    .banner-message {
        display: none;
    }
    
    .banner-link {
        right: 12px;
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* En pantallas muy chicas, si hay botón, apilar */
    .banner:has(.banner-link) .banner-content {
        padding-right: 0;
        padding-bottom: 40px;
    }
    
    .banner-link {
        position: static;
        transform: none;
        margin: 8px auto 0;
        display: block;
        width: fit-content;
    }
    
    .banner-link:hover {
        transform: translateY(-1px);
    }
}

/* -------- Limitar banners visibles en móvil -------- */
@media (max-width: 768px) {
    /* Si hay más de 2 banners, ocultar a partir del 3ro */
    .banners-container .banner:nth-child(n+3) {
        display: none;
    }
    
    .banners-container.has-more .banner:nth-child(n+3) {
        /* Se mostrarán cuando el usuario expanda */
    }
}

/* -------- Botón "Ver más" para expandir banners en móvil -------- */
.banners-toggle {
    display: none;
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.banners-toggle:hover {
    background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .banners-container.has-more + .banners-toggle {
        display: block;
    }
    
    .banners-container.expanded .banner {
        display: flex !important;
    }
}