/* Unificar tamaño de imagen en popup de bodega */
.bodega-img-full img {
  width: 320px !important;
  max-width: 90vw !important;
  height: 220px !important;
  max-height: 220px !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 24px #0003 !important;
  background: #2B0F13 !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Forzar centrado de los popups de Leaflet */
.leaflet-popup-content-wrapper {
  text-align: center !important;
}
.metric-grid {
  background: #220F17 !important;
  border-radius: 14px;
  padding: 12px 0 8px 0;
}
@media (max-width: 700px) {
  .sidebar-panel {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    box-sizing: border-box;
  }
}
@media (max-width: 700px) {
  #toggle-metrics {
    position: fixed !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 3000 !important;
    background: #111 !important;
    color: #fff !important;
    border-radius: 0 !important;
    width: 36px !important;
    height: 36px !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    opacity: 0.98 !important;
    transition: background 0.2s, color 0.2s;
    padding: 0 !important;
    text-align: center !important;
    cursor: pointer !important;
  }
  #toggle-metrics:active,
  #toggle-metrics:focus,
  #toggle-metrics:hover {
    background: #111 !important;
    color: #fff !important;
    outline: none !important;
  }
  #toggle-metrics span {
    display: inline-block;
    position: relative;
    width: 24px;
    height: 16px;
  }
  #toggle-metrics span::before,
  #toggle-metrics span::after,
  #toggle-metrics span {
    content: '';
    display: block;
    height: 2px;
    background: #fff !important;
    border-radius: 1px;
    margin: 4px 0;
    transition: all 0.3s;
  }
  #toggle-metrics span::before {
    content: '';
  }
  #toggle-metrics span::after {
    content: '';
  }
  #toggle-metrics:active, #toggle-metrics:focus {
    background: #fff !important;
    color: var(--brand-accent) !important;
    outline: 2px solid var(--brand-accent) !important;
  }
  #toggle-metrics:active span,
  #toggle-metrics:active span::before,
  #toggle-metrics:active span::after,
  #toggle-metrics:focus span,
  #toggle-metrics:focus span::before,
  #toggle-metrics:focus span::after {
    background: var(--brand-accent) !important;
  }
  #toggle-metrics {
    font-size: 0 !important;
  }
  #toggle-metrics span {
    font-size: 1rem !important;
  }
}
@media (max-width: 700px) {
  .leaflet-popup-close-button {
    display: block !important;
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 2000 !important;
    font-size: 2.1em !important;
    background: none !important;
    color: #fff !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    text-align: center !important;
    cursor: pointer !important;
    opacity: 0.95 !important;
    box-shadow: none !important;
  }
  .leaflet-popup-close-button span {
    font-size: 1.2em !important;
    color: #fff !important;
    line-height: 36px !important;
    display: inline-block;
    vertical-align: middle;
  }
}
@media (max-width: 700px) {
  .leaflet-popup-content-wrapper {
    max-width: 95vw !important;
    width: 380px !important;
    min-width: 0 !important;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    background: #fff;
  }
  .leaflet-popup-content {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 16px 18px !important;
    box-sizing: border-box;
    overflow-x: auto;
  }
  .user-popup {
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
  }
  .user-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    padding: 0 0 8px 0 !important;
    margin: 0 auto 8px auto !important;
    box-sizing: border-box;
  }
  .user-card-img-wrapper {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 8px auto !important;
  }
  .user-card-img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
  }
  .user-card-name {
    font-size: 1.1em !important;
    text-align: center;
    margin-bottom: 4px;
  }
  .user-card-description {
    font-size: 0.98em !important;
    text-align: center;
    margin-bottom: 8px;
    padding: 0 2vw;
  }
  .user-card-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    background: #2F1D25;
    border-radius: 8px;
  }
  .user-card-social a svg {
    width: 22px !important;
    height: 22px !important;
  }
  .wallets-section, .wallet-section, .wallet-import-controls {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    padding: 0 2vw !important;
  }
  .wallet-item code {
    font-size: 0.92em !important;
    word-break: break-all;
    white-space: pre-wrap;
  }
  .footer-popup {
    padding: 0 2vw !important;
    font-size: 0.98em !important;
  }
  .footer-popup-item {
    font-size: 0.98em !important;
    margin-bottom: 2px;
  }
}
@media (max-width: 700px) {
  .nav {
    width: 100vw;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(180deg, rgba(28,23,25,0.98), rgba(28,23,25,0.92));
    position: fixed;
    top: var(--header-height);
    left: 0;
    z-index: 1200;
    padding: 0;
    box-shadow: 0 4px 16px #0003;
    transition: max-height 0.3s;
    max-height: 0;
    overflow: hidden;
  }
  .nav.open {
    max-height: 320px;
    transition: max-height 0.3s;
    overflow: visible;
  }
  .nav .btn, .nav .control-btn {
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid #fff2;
    text-align: left;
    padding: 14px 18px;
    font-size: 1.08em;
    background: none;
    color: #fff;
    box-shadow: none;
  }
  .nav .btn:last-child, .nav .control-btn:last-child {
    border-bottom: none;
  }
  #toggle-metrics {
    display: block !important;
    width: 100%;
    font-size: 1.3em;
    background: var(--brand-accent);
    color: #1F2937;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
    box-shadow: none;
  }
  .nav:not(.open) .btn:not(#toggle-metrics),
  .nav:not(.open) .control-btn {
    display: none !important;
  }
}
.leaflet-popup h3.bodega-img-title {
  color: #fff !important;
  background: #ff9800 !important;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 2px 8px #0002;
  display: inline-block;
  margin-bottom: 10px;
  margin-top: 0;
  font-size: 1rem;
}
/* CartoLMM - Wine-Tech CSS Theme */
/* Del Terruño al Ciberespacio */

:root {
  /* Wine Colors */
  --wine-red: #722F37;
  --wine-purple: #4A0E4E;
  --wine-rose: #C4787C;
  --wine-gold: #D4A574;
  
  /* Blockchain Colors */
  --bitcoin-orange: #F7931A;
  --brand-accent: var(--bitcoin-orange);
  --btn-hover-start: #8b1631;
  --btn-hover-end: #6a0f22;
  --btn-hover-start-rgb: 139, 22, 49;
  --blockchain-green: #10B981;
  --network-blue: #3B82F6;
  --p2p-cyan: #06B6D4;
  
  /* System Colors */
  --active-green: #22C55E;
  --warning-yellow: #EAB308;
  --error-red: #EF4444;
  --neutral-gray: #6B7280;
  --background-dark: #1F2937;
  --background-light: #2F1D25;
  --text-primary: #fafcfe;
  --text-secondary: #6B7280;
  --border-color: #FF9702;
  
  /* Layout */
  --header-height: 72px;
  --sidebar-width: 420px;
  --timeline-height: 0px;
  --border-radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*
  Este archivo contiene estilos globales del layout de la aplicación.
  Aplican a la estructura principal en `public/index.html`:
  - #cartolmm-app (grid principal)
  - .cartolmm-header (cabecera)
  - .cartolmm-main, .map-container, .sidebar-panel (mapa + panel lateral)
  Las variables CSS en :root permiten ajustar rápido alturas y colores.
*/

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background-light);
  color: var(--text-primary);
  overflow: hidden;
}

/* === Unified header & navigation style (imported pattern from magnumsmaster) === */
.site-header {
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  position: sticky;
  top: 0;
  /* Tono base #1C1719 más oscuro con mayor opacidad */
  background: linear-gradient(180deg, rgba(28,23,25,0.92), rgba(28,23,25,0.85));
  background-color: rgba(28,23,25,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: var(--header-height);
  min-height: var(--header-height);
  padding: 0;
  z-index: 1000;
  display:flex;
  align-items:center;
}
.site-header .container {
  display:flex;
  align-items:center;
  gap:10px;
  height:100%;
  width:100%;
  padding:8px 18px;
  box-sizing:border-box;
}
.logo {
  font-weight:700;
  letter-spacing:0.6px;
  font-size:1.35rem;
  line-height:1;
  margin:0;
  color: #fff !important;
}
.logo-icon {
  width:46px; height:auto; margin-right:10px;
}
.logo-icon.white { filter: invert(1) brightness(1.35) contrast(1.05); background-color: rgba(255,255,255,0.12); padding:6px; border-radius:8px; box-shadow:0 4px 14px rgba(0,0,0,0.35); transition: transform 420ms cubic-bezier(.2,.9,.2,1); }
.logo-icon.white:hover { transform: scale(1.08) rotate(8deg); }
.nav { margin-left:auto; display:flex; gap:6px; }
.nav .btn, .control-btn.unified-btn { display:inline-block; padding:10px 16px; border-radius:8px; text-decoration:none; background: none; color:#fff !important; font-weight:600; border:1px solid rgba(0,0,0,0.08); transition: all .25s ease; font-size:.85rem; line-height:1; }
.nav .btn:hover, .nav .btn:focus, .control-btn.unified-btn:hover, .control-btn.unified-btn:focus { background: linear-gradient(180deg,var(--btn-hover-start) 0%,var(--btn-hover-end) 100%); color:#fff !important; outline:none; }
.nav .btn.active { background: linear-gradient(180deg,var(--btn-hover-start) 0%,var(--btn-hover-end) 100%); color:#fff !important; border:1px solid rgba(var(--btn-hover-start-rgb),.9); }

/* Hide old themed header background while transitioning */
.cartolmm-header { background: none; box-shadow:none; padding:0; }

/* Map control button reset to unified style */
.header-controls { gap:6px; }
.header-controls .control-btn { background: none; border:1px solid rgba(0,0,0,0.08); color:#08101a; font-weight:600; padding:10px 14px; border-radius:8px; font-size:.75rem; }
.header-controls .control-btn:hover { background: linear-gradient(180deg,var(--btn-hover-start) 0%,var(--btn-hover-end) 100%); color:#fff; }


/* Ensure root elements and map containers fill available height to avoid bottom gaps */
html, body, #cartolmm-app, .map-container, .leaflet-map {
  height: 100%;
}

/* Main App Container */
#cartolmm-app {
  display: grid;
  grid-template-rows: var(--header-height) 1fr;
  height: 100vh;
  width: 100vw;
}

/* Header */
.cartolmm-header {
  background: linear-gradient(135deg, var(--wine-red), var(--wine-purple));
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: var(--shadow);
  z-index: 1000;
}

.header-left h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.subtitle {
  font-size: 0.75rem;
  opacity: 0.9;
  font-style: italic;
}

.header-controls {
  display: flex;
  gap: 0.5rem;
}

.control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Main Layout */
.cartolmm-main {
  display: grid;
  /* By default the map occupies full width and the sidebar is hidden.
     Toggle the class 'sidebar-open' to show the sidebar. */
  grid-template-columns: 1fr 0px;
  height: 100%;
  overflow: hidden;
}

/* When sidebar-open is present, reserve space for the sidebar */
.cartolmm-main.sidebar-open {
  grid-template-columns: 1fr var(--sidebar-width);
}

/* Map Container */
.map-container {
  position: relative;
  background: var(--network-blue);
}

.leaflet-map {
  height: 100%;
  width: 100%;
}

/* Sidebar Panel */
.sidebar-panel {
  background: #2B0F13;
  border-left: 1px solid var(--border-color);
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%; /* Usa toda la altura disponible */
  /* Mejor scroll en móviles */
  -webkit-overflow-scrolling: touch;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 22, 49, 0.3) transparent;
}

/* Custom scrollbar para WebKit (Chrome, Safari, Edge) */
.sidebar-panel::-webkit-scrollbar {
  width: 6px;
}

.sidebar-panel::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-panel::-webkit-scrollbar-thumb {
  background: rgba(139, 22, 49, 0.3);
  border-radius: 3px;
}

.sidebar-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 22, 49, 0.5);
}

/* Hide the sidebar visually when the parent grid does not reserve space */
.cartolmm-main:not(.sidebar-open) .sidebar-panel {
  display: none;
}

/* Metrics Sections */
.metrics-section {
  background: var(--background-light);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  border: 1px solid var(--border-color);
}

.metrics-section h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.5rem;
}

.metric-card {
  background:var(--background-dark);
  padding: 0.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.metric-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.metric-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bitcoin-change .metric-value {
  color: var(--bitcoin-orange);
}

/* Activity Section */
.activity-section {
  background: var(--background-light);
  border-radius: var(--border-radius);
  padding: 1rem;
  border: 1px solid var(--border-color);
  flex: 1;
}

.activity-section h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 200px;
  overflow-y: auto;
}

.activity-item {
  background: white;
  padding: 0.6rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.activity-time {
  color: var(--text-secondary);
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
}

.activity-type-wine {
  border-left: 4px solid var(--wine-red);
}

.activity-type-bitcoin {
  border-left: 4px solid var(--bitcoin-orange);
}

.activity-type-network {
  border-left: 4px solid var(--network-blue);
}

/* Timeline Control */
.timeline-control {
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

/* (timeline styles removed - control no longer in the UI) */

.filter-select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: white;
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  max-width: 600px;
  max-height: 80vh;
  width: 90%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: linear-gradient(135deg, var(--blockchain-green), var(--bitcoin-orange));
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: 60vh;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-item strong {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.transaction-item {
  background: var(--background-light);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

/* Leaflet Custom Styles */
.leaflet-popup-content-wrapper {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.leaflet-popup-content {
  margin: 0.75rem;
  font-family: inherit;
}

.leaflet-popup h3 {
  color: #FFA726;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.leaflet-popup p {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

/* Wine Marker Styles */
.wine-marker {
  background: var(--wine-red);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
}

.wine-marker:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.wine-marker.active {
  animation: pulse-wine 2s infinite;
}

@keyframes pulse-wine {
  0% {
    box-shadow: 0 0 0 0 rgba(114, 47, 55, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(114, 47, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(114, 47, 55, 0);
  }
}

/* Network Connection Lines */
.network-line {
  stroke: var(--network-blue);
  stroke-width: 2;
  stroke-dasharray: 5,5;
  animation: dash 2s linear infinite;
  opacity: 0.7;
}

@keyframes dash {
  to {
    stroke-dashoffset: -10;
  }
}

.network-line.active {
  stroke: var(--blockchain-green);
  stroke-width: 3;
  opacity: 1;
}

/* Transaction Particles */
.transaction-particle {
  fill: var(--bitcoin-orange);
  opacity: 0.8;
  animation: move-particle 3s linear infinite;
}

@keyframes move-particle {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .cartolmm-main {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  
  .sidebar-panel {
    height: auto;
    min-height: 40vh; /* Mínimo 40% de la altura de la ventana */
    max-height: 60vh; /* Máximo 60% para dejar espacio al mapa */
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
  
  .metrics-section {
    margin-bottom: 0;
  }
  
  .activity-section {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 100%;
    --header-height: 50px;
  }
  
  .header-controls {
    gap: 0.25rem;
  }
  
  .control-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .timeline-control {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
  }
  
  .timeline-filters {
    justify-content: center;
  }
  
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .map-controls {
    top: 0.5rem;
    left: 0.5rem;
  }
  
  .layer-toggle {
    min-width: 140px;
    padding: 0.75rem;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--wine-red);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success/Error States */
.success {
  color: var(--active-green);
}

.error {
  color: var(--error-red);
}

.warning {
  color: var(--warning-yellow);
}

/* Mensaje de bienvenida en verde suave */
.welcome-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #16a34a !important; /* Verde más suave */
  color: white;
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  animation: fade-in 0.5s;
}

/* === Connection Status Indicator === */
.connection-status {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(18, 6, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.connection-status:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Estado desconectado */
.connection-status.disconnected {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(40, 10, 10, 0.85);
}