/* ============================================================
   RESPONSIVE — Mejoras mobile-first para TODO el app
   ============================================================ */

/* ============================================================
   SAFE AREAS (iPhone notch / Android nav)
   ============================================================ */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* ============================================================
   TOPBAR MÓVIL — compacta + botón hamburguesa
   ============================================================ */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all .2s;
}
.mobile-menu-btn:hover {
  background: rgba(255,255,255,.06);
}
.mobile-menu-btn:active {
  transform: scale(.95);
}

/* ============================================================
   MENÚ DESPLEGABLE EN MÓVIL (drawer)
   ============================================================ */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--bg-1);
  border-right: 1px solid var(--border-strong);
  z-index: 99990;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px rgba(0,0,0,.5);
  padding-top: var(--safe-top);
}
.mobile-drawer.open {
  transform: translateX(0);
}
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99989;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-drawer-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
}
.mobile-drawer-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: inherit;
}
.mobile-drawer-close:hover {
  background: rgba(255,255,255,.06);
  color: var(--red);
}

/* Usuario dentro del drawer */
.mobile-drawer-user {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-drawer-user-avatar {
  font-size: 36px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.mobile-drawer-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.mobile-drawer-user-info {
  flex: 1;
  min-width: 0;
}
.mobile-drawer-user-name {
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.mobile-drawer-user-balance {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  margin-top: 2px;
}

/* Nav en el drawer */
.mobile-drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer-nav::-webkit-scrollbar { width: 4px; }
.mobile-drawer-nav::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}
.mobile-drawer-nav .nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  margin-bottom: 2px;
  letter-spacing: 0.3px;
}
.mobile-drawer-nav .nav-btn:hover {
  background: rgba(255,255,255,.05);
}
.mobile-drawer-nav .nav-btn.active {
  background: rgba(128,224,255,.1);
  border-color: var(--border-strong);
  color: var(--accent-2);
}

.mobile-drawer-footer {
  padding: 12px 16px;
  padding-bottom: calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--border);
}

/* ============================================================
   TABLET / MÓVIL GRANDE (max 900px)
   ============================================================ */
@media (max-width: 900px) {
  .menu-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero-leaderboard {
    position: static;
    max-height: none;
    margin-top: 14px;
  }
  .admin-dashboard {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================================
   MÓVIL (max 700px)
   ============================================================ */
@media (max-width: 700px) {

  /* ---------- TOPBAR ---------- */
  .topbar {
    height: 52px;
    padding: 0 10px;
    padding-top: var(--safe-top);
    gap: 8px;
    height: calc(52px + var(--safe-top));
  }
  .topbar .logo-small {
    font-size: 12px;
    letter-spacing: 1px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-menu-btn { display: flex; order: -1; }

  /* Ocultar nav completo y user-info detallada en móvil */
  .main-nav { display: none !important; }
  .user-info {
    display: none !important;
  }

  /* ---------- CONTENT ---------- */
  .content-screen {
    padding: 14px 12px;
    padding-bottom: calc(14px + var(--safe-bottom));
  }

  /* ---------- MENÚ PRINCIPAL ---------- */
  .welcome {
    margin-bottom: 16px;
  }
  .welcome h1 {
    font-size: 20px;
  }
  .welcome p {
    font-size: 12px;
  }
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .menu-card {
    padding: 14px 10px;
    border-radius: 10px;
  }
  .menu-card .icon { font-size: 28px; }
  .menu-card .title { font-size: 13px; }
  .menu-card .desc { font-size: 10px; }

  /* ---------- TABS ADMIN ---------- */
  .admin-tabs {
    padding-bottom: 4px;
    gap: 0;
  }
  .admin-tab {
    padding: 10px 12px;
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  /* ---------- ADMIN: usuarios en cards compactas ---------- */
  .admin-user-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .admin-user-card {
    padding: 12px;
  }
  .admin-filters {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 6px;
  }
  .admin-filters input,
  .admin-filters select {
    width: 100%;
    min-width: auto;
  }
  .admin-filters button {
    width: 100%;
  }
  .admin-filters #btn-crear-usuario {
    margin-left: 0 !important;
  }

  /* ---------- DASHBOARD ---------- */
  .admin-dashboard {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .dash-card {
    padding: 10px;
    gap: 8px;
  }
  .dash-icon { font-size: 22px; }
  .dash-num { font-size: 18px; }
  .dash-lbl { font-size: 9px; }

  /* ---------- MODALES ---------- */
  .modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }
  .modal-card {
    border-radius: 16px 16px 0 0;
    padding: 20px 16px;
    max-width: 100%;
    max-height: 92vh;
    animation: modalSlideUp .3s cubic-bezier(.4,0,.2,1);
  }
  @keyframes modalSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .modal-card h3 {
    font-size: 15px;
    margin-bottom: 12px;
  }
  .modal-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .modal-actions .btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  /* ---------- BOTONES ---------- */
  .btn {
    padding: 11px 16px;
    font-size: 13px;
    /* Aumentar tamaño táctil mínimo a 44px */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .btn.small {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 11px;
  }

  /* ---------- INPUTS ---------- */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    /* Evitar zoom automático en iOS al enfocar (< 16px dispara zoom) */
    font-size: 16px !important;
    min-height: 44px;
  }
  .modal-card input,
  .modal-card select,
  .modal-card textarea,
  .form input {
    font-size: 16px !important;
    padding: 12px 14px;
  }

  /* ---------- LOGIN ---------- */
  #screen-login {
    align-items: flex-start;
    padding-top: calc(30px + var(--safe-top));
    padding-bottom: 20px;
  }
  .login-card {
    padding: 24px 18px;
    max-width: 100%;
    border-radius: 14px;
  }
  .login-card .logo { font-size: 20px; }

  /* ---------- PERFIL ---------- */
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .profile-card {
    padding: 14px;
  }
  .profile-card .profile-avatar { font-size: 40px; }
  .profile-card h3 { font-size: 16px; }

  /* ---------- LEADERBOARD ---------- */
  .lb-row {
    grid-template-columns: 30px 30px 1fr 60px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .lb-wr { display: none; }
  .lb-pos { font-size: 14px; }

  /* ---------- SHOP ---------- */
  .shop-layout {
    padding: 0 10px;
  }
  .shop-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .shop-balance {
    font-size: 13px;
    width: 100%;
    justify-content: space-between;
  }
  .shop-categories {
    gap: 4px;
    margin-bottom: 14px;
  }
  .cat-btn {
    padding: 8px 12px;
    font-size: 11px;
    min-height: 36px;
  }
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .shop-item {
    padding: 10px;
  }
  .shop-item-icon { font-size: 40px; }
  .shop-item-name { font-size: 13px; }
  .shop-item-desc { font-size: 10px; }
  .price-btn {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
  }

  /* ---------- WALLET ---------- */
  .wallet-layout { padding: 0 10px; }
  .wallet-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .wallet-balance {
    width: 100%;
    justify-content: space-between;
    font-size: 13px;
  }
  .wallet-panel { padding: 16px; border-radius: 12px; }
  .metodo-selector {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .metodo-btn { padding: 12px 10px; }
  .metodo-icon { font-size: 26px; }
  .metodo-nombre { font-size: 13px; }

  /* ---------- AMIGOS ---------- */
  .friends-wrap {
    gap: 14px;
  }
  .friends-hero {
    padding: 14px;
  }
  .friends-hero-title h2 { font-size: 18px; }
  .friends-code-card { padding: 14px 12px; }
  .fcc-code {
    font-size: 22px;
    letter-spacing: 5px;
    margin-bottom: 10px;
  }
  .fcc-actions {
    flex-direction: column;
  }
  .fcc-actions .btn {
    width: 100%;
  }
  .friends-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .fs-stat { padding: 10px 8px; }
  .fs-num { font-size: 18px; }
  .friends-howto-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .friends-grid {
    grid-template-columns: 1fr;
  }
  .friend-card {
    padding: 12px;
  }

  /* ---------- TORNEOS ---------- */
  .tournaments-list {
    grid-template-columns: 1fr;
  }
  .tournament-card {
    padding: 12px;
  }
  .tournament-players {
    grid-template-columns: 1fr;
  }
  .tournament-bracket {
    grid-template-columns: repeat(var(--rondas), 160px);
  }
  .bracket-ronda { min-width: 160px; }

  /* ---------- TESORERÍA ---------- */
  .treasury-balance-grid {
    grid-template-columns: 1fr;
  }
  .treasury-balance-card { padding: 14px; }
  .treasury-balance-card .tb-num { font-size: 22px; }
  .treasury-periods {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .treasury-mov {
    padding: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .treasury-mov .tm-amount {
    font-size: 13px;
  }

  /* ---------- AUDITORÍA ---------- */
  .audit-entry {
    grid-template-columns: 30px 1fr;
    gap: 8px;
    padding: 10px;
  }
  .audit-entry-time,
  .audit-entry-extra {
    display: none;
  }
  .audit-entry-sev {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
  .audit-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .audit-select,
  .audit-input,
  .audit-input-search {
    min-width: auto;
    width: 100%;
    max-width: none;
  }
  .audit-modal-grid {
    grid-template-columns: 1fr;
  }
  .audit-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .audit-stat-num { font-size: 17px; }
  .audit-stat-lbl { font-size: 9px; }

  /* ---------- TEMAS ---------- */
  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .theme-card-preview { height: 68px; }
  .theme-card-name { font-size: 11px; }
  .theme-card-desc { display: none; }
  .theme-card-badge { font-size: 8px; padding: 2px 6px; }

  /* ---------- SETTINGS ADMIN ---------- */
  .settings-admin-topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  .settings-admin-actions {
    width: 100%;
  }
  .settings-admin-actions .btn {
    flex: 1;
  }
  .settings-dirty-badge {
    flex-basis: 100%;
    text-align: center;
  }
  .settings-cat-header { padding: 10px 12px; }
  .settings-cat-label { font-size: 13px; }
  .settings-cat-body { padding: 12px; }
  .settings-cat-footer .btn { flex: 1; }
  .settings-field { padding: 10px; }
  .settings-field-label { font-size: 11px; }

  /* ---------- JUEGO ---------- */
  #screen-game {
    padding-bottom: var(--safe-bottom);
  }
  .game-topbar {
    padding: 6px 8px;
    gap: 8px;
  }
  .game-info #game-room-name { font-size: 11px; }
  .game-info #game-tipo { font-size: 9px; }
  .game-balance { font-size: 10px; }

  .game-opponents {
    padding: 6px 8px;
    gap: 6px;
    min-height: 60px;
  }
  .game-opponent {
    padding: 6px 10px;
    gap: 6px;
    min-height: 54px;
  }
  .game-opponent .avatar {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .game-opponent .name { font-size: 11px; }
  .game-opponent .count { font-size: 9px; }
  .game-opponent.activo { transform: scale(1.02); }
  .tile-row { display: none; }

  .game-board-wrapper {
    margin: 4px 6px;
    border-radius: 8px;
  }
  .game-board {
    padding: 24px 30px;
  }
  .board-end-marker { font-size: 9px; }
  .board-end-marker.left { left: 8px; }
  .board-end-marker.right { right: 8px; }

  .game-hand-wrapper {
    padding: 6px 8px 10px;
  }
  .game-hand-info {
    font-size: 10px;
    margin-bottom: 4px;
  }
  .game-hand {
    gap: 4px;
    padding: 4px 2px 8px;
  }

  .game-actions {
    padding: 6px 8px 8px;
    gap: 6px;
  }
  .game-actions .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 12px;
    min-height: 44px;
  }

  .drop-zone {
    font-size: 11px;
    letter-spacing: 2px;
  }

  /* ---------- TOASTS ---------- */
  #toast-container {
    left: 8px;
    right: 8px;
    bottom: calc(8px + var(--safe-bottom));
    align-items: stretch;
  }
  .toast {
    max-width: none;
    width: 100%;
    font-size: 13px;
    padding: 12px 14px;
  }

  /* ---------- CHAT (respeta teclado) ---------- */
  .chat-panel {
    left: 6px;
    right: 6px;
    bottom: 6px;
    width: auto;
    max-height: 55vh;
    border-radius: 12px;
  }
  .chat-panel.keyboard-open {
    /* Cuando el teclado se abre, subimos el panel */
    bottom: 240px;
  }
  .chat-messages {
    min-height: 100px;
    max-height: 35vh;
  }
  .chat-input input {
    font-size: 16px !important;
    padding: 10px 12px;
  }

  /* ---------- EMOTES ---------- */
  .emotes-panel {
    left: 6px;
    right: 6px;
    bottom: calc(70px + var(--safe-bottom));
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
  }
  .emote-btn {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  /* ---------- GAME SETTINGS ---------- */
  .game-settings-panel {
    left: 6px;
    right: 6px;
    top: auto;
    bottom: calc(70px + var(--safe-bottom));
    width: auto;
    max-height: 60vh;
  }

  /* ---------- TURN OVERLAY ---------- */
  #turn-overlay.turn-notify {
    bottom: calc(80px + var(--safe-bottom));
  }
  #turn-overlay.turn-notify .turn-content {
    padding: 10px 18px 10px 10px;
    font-size: 14px;
    gap: 8px;
  }
  #turn-overlay.turn-notify .turn-avatar {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  #turn-overlay.turn-notify .turn-content h2 {
    font-size: 13px;
  }

  /* ---------- END OVERLAY ---------- */
  .end-content {
    padding: 20px;
    max-width: 100%;
  }
  .end-trophy { font-size: 60px; margin-bottom: 12px; }
  .end-content h2 { font-size: 22px; letter-spacing: 2px; }
  .end-content p { font-size: 13px; }
  .end-content .btn {
    width: 100%;
    margin: 4px 0;
  }

  /* ---------- ELEGIR SALIDA ---------- */
  .elegir-salida-lista {
    max-width: 90vw;
  }
  .elegir-salida-btn {
    padding: 12px 14px;
    font-size: 13px;
  }

  /* ---------- REPLAY ---------- */
  .replay-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .replay-players {
    flex-wrap: wrap;
    gap: 6px;
  }
  .replay-controls {
    flex-wrap: wrap;
  }
  .replay-controls .btn {
    flex: 1;
    min-width: 80px;
  }
  .replay-speed {
    flex-wrap: wrap;
    gap: 4px;
  }
  .speed-btn { min-height: 32px; padding: 6px 10px; font-size: 10px; }

  /* ---------- SALA ---------- */
  .room-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .room-header h2 {
    font-size: 16px;
  }
  .room-players {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .room-player {
    padding: 10px 12px;
  }
  .room-actions .btn {
    width: 100%;
    max-width: none;
    padding: 12px;
  }
  .room-share-actions {
    flex-direction: column;
  }
  .room-share-actions .btn {
    width: 100%;
  }
  .room-bots-controls {
    flex-direction: column;
  }
  .bot-select {
    min-width: auto;
    width: 100%;
  }
  .room-bots-controls .btn {
    width: 100%;
  }
}

/* ============================================================
   MÓVIL MUY PEQUEÑO (max 380px)
   ============================================================ */
@media (max-width: 380px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .admin-dashboard {
    grid-template-columns: 1fr !important;
  }
  .treasury-periods {
    grid-template-columns: 1fr;
  }
  .friends-stats {
    grid-template-columns: 1fr;
  }
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .fcc-code {
    font-size: 18px;
    letter-spacing: 3px;
  }
  .audit-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   LANDSCAPE EN MÓVIL (tablero)
   ============================================================ */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .game-opponents {
    min-height: 48px;
    padding: 4px 8px;
  }
  .game-board-wrapper {
    flex: 1;
    min-height: 120px;
  }
  .game-hand-wrapper {
    padding: 4px 8px 6px;
  }
  .game-actions {
    padding: 4px 8px;
  }
  .game-actions .btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* ============================================================
   DESKTOP GRANDE (mejoras)
   ============================================================ */
@media (min-width: 1400px) {
  .menu-layout {
    max-width: 1300px;
    grid-template-columns: 1fr 380px;
  }
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .content-screen {
    padding: 28px 32px;
  }
  .admin-dashboard {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  }
}

/* ============================================================
   SPLIT VIEW — Tablet horizontal
   ============================================================ */
@media (min-width: 701px) and (max-width: 1100px) {
  .menu-layout {
    grid-template-columns: 1fr 280px;
    gap: 14px;
  }
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-leaderboard {
    max-height: calc(100vh - 200px);
  }
}

/* ============================================================
   HOVER vs TOUCH — quitar hover en dispositivos táctiles
   ============================================================ */
@media (hover: none) {
  .menu-card:hover,
  .shop-item:hover,
  .friend-card:hover,
  .tournament-card:hover,
  .theme-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ============================================================
   PANTALLAS RETINA (mejor renderizado)
   ============================================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .tile .pip,
  .tile-tablero .pip {
    box-shadow: inset -1px -1px 1px rgba(0,0,0,.5);
  }
}
/* ============================================================
   MOBILE-DRAWER-TRANSLUCIDO
   Fondo tenue afin a la web con blur
   ============================================================ */
.mobile-drawer {
  background: rgba(13, 18, 26, 0.72) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-right: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 6px 0 40px rgba(0, 0, 0, .7);
}
.mobile-drawer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(128,224,255,.03) 0%, transparent 40%, rgba(212,165,116,.03) 100%);
  pointer-events: none;
}
.mobile-drawer > * { position: relative; z-index: 1; }
body.has-custom-fund .mobile-drawer {
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.mobile-drawer-header {
  background: rgba(0, 0, 0, .25);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mobile-drawer-user {
  background: rgba(0, 0, 0, .15);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.mobile-drawer-footer {
  background: rgba(0, 0, 0, .25);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.mobile-drawer-nav .nav-btn:hover { background: rgba(255, 255, 255, .08); }
.mobile-drawer-nav .nav-btn.active {
  background: rgba(128, 224, 255, .15);
  border-color: rgba(128, 224, 255, .35);
}
/* ============================================================
   BANNERS PUBLICITARIOS - Menu principal
   ============================================================ */
.site-banners-public {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 18px 0;
}
.site-banner-public {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  text-decoration: none;
}
.site-banner-public:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.site-banner-public img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}
.site-banner-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.65);
  color: #ffcc44;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  z-index: 2;
}
@media (max-width: 700px) {
  .site-banner-public img { max-height: 180px; }
}