/* ==========================================================================
   COMPONENTES UI MODERNOS Y ACCESIBLES
   Sistema Cooperativa Online 2.0
   ========================================================================== */

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

.btn-success {
  background-color: var(--success);
  color: #fff;
}
.btn-success:hover {
  background-color: #059669;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background-color: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background-color: #dc2626;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.btn-warning {
  background-color: var(--warning);
  color: #000;
}
.btn-warning:hover {
  background-color: #d97706;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-subtle);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.btn-sm {
  font-size: 12px;
  padding: 5px 10px;
}

/* FORMULARIOS E INPUTS */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-group .form-input {
  width: 100%;
  padding-left: 36px;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-dim);
  font-size: 15px;
  pointer-events: none;
}

/* BADGES Y ETIQUETAS */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-urgente { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-alta { background: rgba(245, 158, 11, 0.2); color: #fde047; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-normal { background: rgba(2, 132, 199, 0.2); color: #7dd3fc; border: 1px solid rgba(2, 132, 199, 0.4); }

.badge-pendiente { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-despachado { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.badge-resuelto { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.badge-cortado { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-success { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fde047; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-primary { background: rgba(2, 132, 199, 0.2); color: #7dd3fc; border: 1px solid rgba(2, 132, 199, 0.4); }
.badge-info { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }

.foto-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

/* MODALES */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 10000;
  padding: 16px 12px;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.modal-backdrop.active {
  display: flex !important;
}

.modal-window {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
  width: 100%;
  max-width: 650px;
  margin: 15px auto;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-window.modal-lg {
  max-width: 900px;
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-window form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.modal-body {
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

.leaflet-top.leaflet-right {
  z-index: 1000 !important;
}

.modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.modal-backdrop::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-backdrop::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}
.modal-backdrop::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

/* TABLAS DE DATOS */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.data-table tr:hover td {
  background-color: var(--bg-card-hover);
}

/* METRIC CARDS */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.metric-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* FICHA 360 DEL SOCIO */
.ficha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.ficha-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.ficha-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ficha-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.ficha-row:last-child {
  border-bottom: none;
}

.ficha-label {
  color: var(--text-muted);
}

.ficha-value {
  color: var(--text-main);
  font-weight: 600;
}

/* BARRA FLOTANTE DEL MAPA */
.map-floating-toolbar {
  position: absolute;
  top: 14px;
  left: 70px;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  transition: left 0.25s ease;
}

/* ==========================================================================
   GOOGLE-STYLE SLIDING DRAWER SYSTEM (GIS MULTI-NIVEL)
   ========================================================================== */
.gis-drawer-container {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  pointer-events: none;
}

.gis-drawer-container > * {
  pointer-events: auto;
}

/* 1. DOCK RAIL LATERAL (ESTILO GOOGLE DOCK) */
.gis-dock-rail {
  width: 58px;
  height: 100%;
  background: rgba(15, 23, 42, 0.96);
  border-right: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  gap: 3px;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.4);
  z-index: 1003;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.gis-dock-rail::-webkit-scrollbar {
  width: 4px;
}

.gis-dock-rail::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 4px;
}

.gis-dock-btn {
  width: 48px;
  height: 41px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.18s ease;
  padding: 2px;
}

.gis-dock-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

.gis-dock-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(56, 189, 248, 0.2));
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.gis-dock-btn .dock-icon {
  font-size: 15px;
  line-height: 1;
}

.gis-dock-btn .dock-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.gis-dock-spacer {
  flex: 1;
}

.gis-dock-btn-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

/* 2. PANELES DESPLEGABLES NIVEL 1 Y NIVEL 2 */
.gis-panel-level1, .gis-panel-level2 {
  width: 375px;
  max-width: calc(100vw - 70px);
  height: 100%;
  background: rgba(15, 23, 42, 0.97);
  border-right: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  box-shadow: 6px 0 20px rgba(0, 0, 0, 0.5);
  animation: slidePanelIn 0.22s ease-out;
  overflow: hidden;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.gis-panel-level1.gis-panel-expanded, .gis-panel-level2.gis-panel-expanded {
  width: 580px !important;
  max-width: calc(100vw - 70px) !important;
  box-shadow: 12px 0 35px rgba(0, 0, 0, 0.85);
}

.gis-panel-level2 {
  background: rgba(11, 17, 32, 0.98);
  border-left: 1px solid rgba(56, 189, 248, 0.2);
  z-index: 1002;
  box-shadow: 10px 0 25px rgba(0, 0, 0, 0.7);
}

.gis-panel-level1.gis-closed, .gis-panel-level2.gis-closed {
  display: none !important;
}

/* REGLA DE EXCLUSIVIDAD MUTUA ABSOLUTA: L1 y L2 NUNCA se muestran juntos al mismo tiempo */
.gis-drawer-container:has(#gisPanelL2:not(.gis-closed):not([style*="display: none"])) #gisPanelL1,
#gisPanelL1:has(~ #gisPanelL2:not(.gis-closed):not([style*="display: none"])),
#gisPanelL2:not(.gis-closed):not([style*="display: none"]) ~ #gisPanelL1 {
  display: none !important;
}

@keyframes slidePanelIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.gis-panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.gis-panel-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gis-panel-desc {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.gis-panel-close-btn, .gis-panel-back-btn, .gis-panel-tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.gis-panel-close-btn:hover, .gis-panel-back-btn:hover, .gis-panel-tool-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.4);
}

.gis-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gis-panel-body::-webkit-scrollbar {
  width: 5px;
}
.gis-panel-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* TARJETAS INTERNAS Y CONTENEDORES */
.gis-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gis-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.gis-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gis-keyval-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.gis-keyval-label {
  color: var(--text-muted);
}

.gis-keyval-value {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

/* ÁRBOL JERÁRQUICO COLAPSABLE */
.gis-tree-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gis-tree-branch {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.gis-tree-branch-header {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
  transition: background 0.15s ease;
}

.gis-tree-branch-header:hover {
  background: rgba(255, 255, 255, 0.06);
}

.gis-tree-branch-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.gis-tree-branch-content {
  padding: 6px 10px 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.gis-tree-item {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gis-tree-item:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #fff;
}

/* INSIGNIA FLOTANTE DE MODO ACTIVO */
.gis-floating-status-badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(8px);
  animation: pulseGisBadge 2s infinite ease-in-out;
}

@keyframes pulseGisBadge {
  0%, 100% { box-shadow: 0 0 15px rgba(56, 189, 248, 0.3); }
  50% { box-shadow: 0 0 24px rgba(56, 189, 248, 0.6); }
}

/* MARCADOR PULSANTE DE CORTE */
.pulsing-cut-marker {
  animation: pulseCut 1.2s infinite ease-in-out;
}

@keyframes pulseCut {
  0% { transform: scale(1); filter: drop-shadow(0 0 4px #ef4444); }
  50% { transform: scale(1.35); filter: drop-shadow(0 0 12px #ef4444); }
  100% { transform: scale(1); filter: drop-shadow(0 0 4px #ef4444); }
}

.btn-xs {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   BUSCADOR UNIVERSAL Y HOJA DE RUTA GPS (ESTILO GOOGLE MAPS / CAD)
   ========================================================================== */
.gis-universal-search-box {
  position: relative;
}

.gis-universal-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 440px;
  max-width: calc(100vw - 40px);
  max-height: 460px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  overflow-y: auto;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  animation: slidePanelIn 0.15s ease-out;
}

.gis-panel-level1 .gis-universal-dropdown {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  box-shadow: none;
  background: rgba(11, 17, 32, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-top: 6px;
  z-index: 10;
}

.gis-search-group-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 8px 3px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4px;
}

.gis-search-item {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.12s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.gis-search-item:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateX(2px);
}

.gis-search-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.gis-search-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* HOJA DE RUTA PARADAS LIST */
.gis-parada-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.15s ease;
}

.gis-parada-card:hover {
  border-color: var(--accent);
}

.gis-parada-numero {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   MARCADOR CENTRAL COOPERATIVA (BASE OPERATIVA CON HALO GPS)
   ========================================================================== */
.custom-central-marker-pulse {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
}

.central-pin-badge {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease;
}

.central-pin-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.9);
}

.central-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  margin-left: -16px;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.85);
  animation: central-pulse-anim 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes central-pulse-anim {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* ==========================================================================
   ETIQUETAS DINÁMICAS DE SOCIOS (A MEDIDA QUE SE ACERCAN, SIN MOLESTAR LA VISTA)
   ========================================================================== */
.dynamic-socio-label {
  pointer-events: none !important;
  background: transparent !important;
  border: none !important;
}

.socio-pill-label {
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  color: #ffffff;
  text-shadow: 0 1px 2px #000, 0 0 3px rgba(0, 0, 0, 0.95);
  font-size: 10px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 3px solid rgba(16, 185, 129, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  letter-spacing: 0.1px;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.15s ease, background 0.15s ease;
}

.socio-pill-label:hover {
  background: rgba(15, 23, 42, 0.85);
  opacity: 1;
  z-index: 9999 !important;
}

.socio-pill-label.cortado {
  border-left-color: #ef4444;
}

.socio-pill-label .socio-nro {
  color: #38bdf8;
  font-weight: 800;
  font-size: 10px;
}

.socio-pill-label .socio-nombre {
  color: #f1f5f9;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
}

.socio-pill-label.detalle-intermedio .socio-nombre {
  max-width: 200px;
}

.socio-pill-label.detalle-maximo {
  font-size: 11px;
  padding: 3px 8px;
}

.socio-pill-label.detalle-maximo .socio-nombre {
  max-width: 260px;
}

.socio-pill-label.detalle-maximo .socio-extra {
  color: #94a3b8;
  font-size: 9.5px;
  margin-left: 3px;
}

.socio-tooltip-custom {
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 6px !important;
  padding: 4px 9px !important;
  font-size: 11px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  pointer-events: none !important;
}

.socio-tooltip-custom::before {
  border-top-color: rgba(15, 23, 42, 0.92) !important;
}

/* ==========================================================================
   ETIQUETAS RESALTADAS DE SOCIOS AL SELECCIONAR TRAFO O LÍNEA (ENCIMA DEL PUNTO)
   ========================================================================== */
.socio-trafo-over-marker {
  pointer-events: auto !important;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid #f59e0b;
  border-radius: 6px;
  padding: 3px 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
  transition: transform 0.16s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.16s ease, border-color 0.16s ease;
  z-index: 950 !important;
}

.socio-trafo-over-marker:hover {
  transform: translateY(-2px) scale(1.08);
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.25);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.75);
}

.socio-trafo-over-marker .badge-nro {
  color: #fbbf24;
  font-weight: 900;
  font-size: 11.5px;
}

.socio-trafo-over-marker .badge-nom {
  color: #ffffff;
  font-weight: 800;
  font-size: 11.5px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
}

.socio-trafo-over-marker .badge-tag {
  color: #94a3b8;
  font-size: 9.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ==========================================================================
   PANEL DE FACTIBILIDAD Y OBRAS MAXIMIZADO / MINIMIZADO (COMBINACIÓN TOTAL)
   ========================================================================== */
.gis-panel-level1.gis-panel-maximized {
  width: min(880px, calc(100vw - 80px)) !important;
  max-width: calc(100vw - 80px) !important;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 15px 0 35px rgba(0, 0, 0, 0.85);
}

.gis-factibilidad-mini-dock {
  position: absolute;
  top: 14px;
  left: 70px;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 8px;
  padding: 6px 12px;
  display: none !important;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
  animation: fadeInDown 0.2s ease-out;
}

.gis-factibilidad-mini-dock.gis-dock-visible {
  display: flex !important;
}

.gis-factibilidad-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid var(--border-subtle);
}

.gis-fact-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.gis-fact-tab-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(56, 189, 248, 0.35);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TOOLTIPS DESTACADOS PARA VECINOS Y SOCIO SELECCIONADO
   ========================================================================== */
.leaflet-tooltip-vecino-mismo-trafo {
  background: rgba(15, 23, 42, 0.94) !important;
  border: 1.5px solid #10b981 !important;
  border-radius: 6px !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
  padding: 3px 8px !important;
  font-family: inherit !important;
}

.leaflet-tooltip-vecino-mismo-trafo::before {
  border-top-color: #10b981 !important;
}

.leaflet-tooltip-vecino-cercano {
  background: rgba(15, 23, 42, 0.94) !important;
  border: 1.5px solid #a855f7 !important;
  border-radius: 6px !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.45) !important;
  padding: 3px 8px !important;
  font-family: inherit !important;
}

.leaflet-tooltip-vecino-cercano::before {
  border-top-color: #10b981 !important;
}

.leaflet-tooltip-socio-seleccionado {
  background: rgba(15, 23, 42, 0.98) !important;
  border: 2.5px solid #f59e0b !important;
  border-radius: 9px !important;
  color: #fff !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9), 0 0 22px rgba(245, 158, 11, 0.85) !important;
  padding: 5px 12px !important;
  font-family: inherit !important;
}

.leaflet-tooltip-socio-seleccionado::before {
  border-top-color: #f59e0b !important;
}

.leaflet-tooltip-trafo-destacado {
  background: rgba(15, 23, 42, 0.96) !important;
  border: 2px solid #f59e0b !important;
  border-radius: 8px !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6) !important;
  padding: 6px 10px !important;
  font-family: inherit !important;
  pointer-events: none !important;
}

.leaflet-tooltip-trafo-destacado::before {
  border-top-color: #f59e0b !important;
}

.custom-set-marker, .custom-set-marker-semaforo, .custom-trafo-cluster-icon {
  background: transparent !important;
  border: none !important;
}

.trafo-mini-marker {
  box-sizing: border-box !important;
  user-select: none !important;
}

.trafo-mini-marker:hover {
  transform: scale(1.3) !important;
  box-shadow: 0 0 14px #fbbf24 !important;
  z-index: 1000 !important;
}

/* ==========================================================================
   BEACON ULTRA-DESTACADO PARA SOCIO BUSCADO (MAXIMA VISIBILIDAD)
   ========================================================================== */
.socio-buscado-beacon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.socio-buscado-pulse-wave {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.9);
  animation: socioBeaconPulse 1.6s infinite ease-out;
}

@keyframes socioBeaconPulse {
  0% { transform: scale(0.6); opacity: 1; }
  60% { transform: scale(1.6); opacity: 0.35; }
  100% { transform: scale(2.2); opacity: 0; }
}

.socio-buscado-core-badge {
  position: relative;
  width: 32px;
  height: 32px;
  background: radial-gradient(circle, #f59e0b 20%, #d97706 90%);
  border: 3.5px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.85), 0 0 18px rgba(245, 158, 11, 0.95);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 1px 2px #000;
  animation: socioCoreFloat 2.4s infinite ease-in-out;
}

@keyframes socioCoreFloat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); box-shadow: 0 4px 20px rgba(0,0,0,0.9), 0 0 26px rgba(245, 158, 11, 1); }
}

.socio-buscado-pulse-outer {
  animation: pulseSocioOuter 1.5s infinite ease-out;
}

@keyframes pulseSocioOuter {
  0% { stroke-width: 4; stroke-opacity: 0.9; }
  50% { stroke-width: 8; stroke-opacity: 0.5; }
  100% { stroke-width: 2; stroke-opacity: 0.2; }
}

.custom-vecino-marker {
  background: transparent !important;
  border: none !important;
}

/* Casitas de Vecinos Titilando / Pulsing (Modo Entorno) */
.casita-vecino-beacon-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.casita-vecino-pulse-wave {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.85);
  animation: casitaVecinoPulse 1.4s infinite ease-out;
  pointer-events: none;
}
@keyframes casitaVecinoPulse {
  0% { transform: scale(0.6); opacity: 1; }
  60% { transform: scale(1.6); opacity: 0.3; }
  100% { transform: scale(2.2); opacity: 0; }
}
.casita-vecino-core-badge {
  position: relative;
  width: 26px;
  height: 26px;
  background: radial-gradient(circle, #10b981 30%, #059669 90%);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.7), 0 0 12px rgba(16, 185, 129, 0.7);
  font-size: 14px;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: casitaVecinoFloat 2.0s infinite ease-in-out;
}
@keyframes casitaVecinoFloat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); box-shadow: 0 4px 14px rgba(0,0,0,0.85), 0 0 18px rgba(16, 185, 129, 1); }
}
.casita-vecino-beacon-wrap:hover .casita-vecino-core-badge {
  transform: scale(1.3) !important;
  border-color: #fde047;
  box-shadow: 0 0 20px #10b981, 0 0 10px #fde047;
}
.casita-vecino-subnum {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #0f172a;
  color: #34d399;
  font-size: 8.5px;
  font-weight: 900;
  padding: 0 3px;
  border-radius: 3px;
  border: 1px solid #10b981;
  line-height: 1.1;
  pointer-events: none;
}

/* ==========================================================================
   DISEÑO MODERNO: RECLAMOS Y GUARDIAS 24HS (UI/UX 2026)
   ========================================================================== */

/* Métricas Interactivas con Glow */
.metric-card.interactive {
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.metric-card.interactive:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.5), 0 0 15px rgba(2, 132, 199, 0.2);
}
.metric-card.interactive.active {
  border-color: #0284c7;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.16), rgba(15, 23, 42, 0.9));
  box-shadow: 0 0 0 1px #0284c7, 0 8px 24px rgba(2, 132, 199, 0.25);
}
.metric-card.interactive.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

/* Tarjeta de Ticket de Reclamo Moderna */
.ticket-card {
  background: linear-gradient(180deg, #131d31 0%, #0d1526 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.ticket-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}
.ticket-card.selected {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.15) 0%, rgba(13, 21, 38, 0.95) 100%);
  border-color: #0284c7;
  box-shadow: 0 0 0 1px #0284c7, 0 8px 25px rgba(2, 132, 199, 0.2);
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket-grid-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.ticket-info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.ticket-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Dropdown de Más Opciones en Reclamos */
.ticket-dropdown {
  position: relative;
  display: inline-block;
}
.ticket-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  min-width: 190px;
  z-index: 100;
  overflow: hidden;
  animation: fadeInMenu 0.15s ease-out;
}
.ticket-dropdown.open .ticket-dropdown-menu {
  display: block;
}
.ticket-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}
.ticket-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.ticket-dropdown-item.danger {
  color: #f87171;
}
.ticket-dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* Barra de Estado Guardia en Vivo (Alta Visibilidad) */
.guardia-live-strip {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(15, 23, 42, 0.98));
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(16, 185, 129, 0.08);
}
.guardia-live-strip strong {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.6px;
}

/* Pestañas Segmentadas de Guardias (Sub-tabs) - Gruesas, Claras y de Alta Visibilidad */
.guardias-nav-bar {
  display: flex;
  gap: 8px;
  background: #0b1324;
  padding: 8px;
  border-radius: 12px;
  border: 2px solid #1e293b;
  margin-bottom: 20px;
  overflow-x: auto;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.guardias-nav-pill {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 800;
  color: #cbd5e1;
  border-radius: 9px;
  background: #152238;
  border: 1.5px solid #283a58;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.guardias-nav-pill:hover {
  color: #ffffff;
  background: #1e3352;
  border-color: #38bdf8;
  transform: translateY(-1px);
}
.guardias-nav-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.25);
}
.guardias-nav-pill .badge-count {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 900;
  color: #ffffff;
}

/* Tarjetas de Cuadrilla Modernas y Claras */
.cuadrilla-card {
  background: #111c30;
  border: 2px solid #213350;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cuadrilla-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.cuadrilla-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.cuadrilla-title {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cuadrilla-zonas {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 3px;
}

/* Bloque Destacado de Móvil Asignado */
.cuadrilla-movil-box {
  background: rgba(245, 158, 11, 0.08);
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 12px 14px;
}
.cuadrilla-movil-title {
  font-size: 12px;
  font-weight: 900;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cuadrilla-movil-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
}

/* Padrón y PINs de Operarios */
.pin-badge {
  background: rgba(16, 185, 129, 0.18);
  border: 2px solid #10b981;
  color: #34d399;
  font-family: monospace;
  font-weight: 900;
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pin-badge:hover {
  background: #10b981;
  color: #0b1324;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

/* Botón de Guardia Activa / Pasivo */
.guardia-toggle-btn {
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  user-select: none;
}
.guardia-toggle-btn.activa {
  background: #059669;
  border: 2px solid #10b981;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}
.guardia-toggle-btn.pasiva {
  background: #1e293b;
  border: 1.5px solid #475569;
  color: #94a3b8;
}
.guardia-toggle-btn.pasiva:hover {
  border-color: #10b981;
  color: #34d399;
}

/* Tabla de Partes Diarios de Alta Legibilidad */
.parte-row-card {
  background: #131d31;
  border-left: 4px solid #0284c7;
  transition: background 0.15s ease;
}
.parte-row-card:hover {
  background: #1a2742;
}
.parte-row-card td {
  padding: 12px 14px;
  font-size: 13.5px;
  color: #e2e8f0;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}




/* ==========================================================================
   ESTILOS DE CASITA COOP CAMPO (PUNTOS DE SOCIO Y SOCIO DESTACADO)
   ========================================================================== */
.sym-socio-dot {
  width: 22px;
  height: 22px;
  background: #0284c7;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform 0.15s ease-out;
}
.sym-socio-dot.con-luz {
  background: #10b981;
}
.sym-socio-dot.cortado {
  background: #dc2626;
}
.sym-socio-dot:hover, .sym-socio-dot:active {
  transform: scale(1.3);
  border-color: #38bdf8;
  z-index: 1000;
}
.sym-socio-dot span {
  line-height: 1;
  display: block;
}

.casita-tintilante-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.casita-radar-wave-1 {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.25);
  animation: casitaWaveExpand 1.6s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}
.casita-radar-wave-2 {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  animation: casitaWaveExpand 1.6s cubic-bezier(0.2, 0.8, 0.4, 1) infinite 0.8s;
}
.casita-icon-house {
  font-size: 28px;
  z-index: 10;
  animation: casitaPulsingBeacon 1.2s ease-in-out infinite;
  cursor: pointer;
}

@keyframes casitaWaveExpand {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes casitaPulsingBeacon {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8)); }
  50% { transform: scale(1.22); filter: drop-shadow(0 0 14px rgba(239, 68, 68, 1)); }
}


/* ==========================================================================
   MARCADOR CASITA DISCRETO DE SOCIOS CONECTADOS AL TRAFO SELECCIONADO
   ========================================================================== */
.custom-socio-casita-wrapper {
  background: transparent !important;
  border: none !important;
}

.socio-casita-pin {
  pointer-events: auto !important;
  cursor: pointer;
  width: 28px;
  height: 28px;
  background: #0f172a;
  border: 2px solid #38bdf8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6), 0 0 8px rgba(56, 189, 248, 0.4);
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  z-index: 2500 !important;
  user-select: none;
}

.socio-casita-pin:hover {
  transform: scale(1.3) translateY(-3px);
  border-color: #fbbf24;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.85), 0 0 12px rgba(251, 191, 36, 0.6);
  background: #1e293b;
}

.socio-casita-pin .casita-icon {
  line-height: 1;
  display: block;
}
