/****** ÁRBOL VISUAL Y LAYOUT ******/
.arbol-scope {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 2px 16px #0002;
  padding: 24px 8px;
  background: linear-gradient(120deg, #fffbe6 0%, #ffe259 40%, #ffa751 70%, #a1c4fd 100%);
  color: #222;
  transition: background 0.2s, color 0.2s;
  min-height: 80vh;
  position: relative;
}
body.dark-mode .arbol-scope {
  background: linear-gradient(120deg, #23243a 0%, #392541 40%, #ffd700 70%, #a1c4fd 100%);
  color: #eaeef6;
}

/* Header dentro de la sección de árbol */
.arbol-header {
  margin-bottom: 1.5rem;
}
.gradient-title {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #1d4ed8, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}
body.dark-mode .gradient-title {
  background: linear-gradient(90deg, #facc15, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}
.arbol-subtitle {
  font-size: 0.9rem;
  color: #374151;
}
body.dark-mode .arbol-subtitle {
  color: #e5e7eb;
}

/* Filtros y toolbar */
.filtros-linea {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.vistas-linea {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.toolbar-wrap .btn {
  min-width: 100px;
}

@media (max-width: 768px) {
  .filtros-linea {
    flex-direction: column;
    align-items: stretch;
  }
  .vistas-linea {
    flex-direction: column;
    align-items: stretch;
  }
}

/****** TABLA NIVELES ******/
#tabla-niveles {
  background: rgba(15, 23, 42, 0.03);
  border-radius: 12px;
  padding: 0.75rem;
}
body.dark-mode #tabla-niveles {
  background: rgba(15, 23, 42, 0.35);
}

/** Barrita encabezado de nivel **/
.arbol-nivel-header {
  cursor: pointer;
  user-select: none;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  color: #f9fafb;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.arbol-nivel-header .badge {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
}

/* Contenedor de filas de cada nivel (tabla interna) */
.arbol-nivel-contenido {
  margin: 0.4rem 0 0.75rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
}
.arbol-nivel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.arbol-nivel-table thead {
  background: rgba(15, 23, 42, 0.06);
}
body.dark-mode .arbol-nivel-table thead {
  background: rgba(15, 23, 42, 0.75);
}
.arbol-nivel-table th,
.arbol-nivel-table td {
  padding: 0.45rem 0.5rem;
  white-space: nowrap;
}
.arbol-nivel-table tbody tr:nth-child(even) {
  background: rgba(148, 163, 184, 0.12);
}
body.dark-mode .arbol-nivel-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.6);
}

/****** ÁRBOL VISUAL ******/
.arbol-container { 
  position: relative; 
  display: flex; 
  flex-direction: column; 
  align-items: center;
}
/* Desktop / tablet: una sola fila por nivel (líneas limpias) */
.arbol-scope .arbol-nivel { 
  position: relative; 
  display: flex; 
  flex-direction: row; 
  justify-content: center; 
  flex-wrap: nowrap;      /* 👈 volvemos a nowrap */
  column-gap: 8px;
  row-gap: 10px;
  margin: 12px 0 0 0;
}

/* Móvil: permitimos romper línea para que quepa mejor */
@media (max-width: 768px) {
  .arbol-scope .arbol-nivel {
    flex-wrap: wrap;      /* 👈 solo en pantallas pequeñas */
  }
}

.arbol-scope .nodo-arbol {
  width: 64px; 
  height: 64px; 
  border-radius: 50%; 
  position: relative;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
  font-weight: 700; 
  font-size: 15px; 
  margin: 0 8px; 
  text-align: center;
  cursor: pointer; 
  user-select: none; 
  border: 3px solid #2563eb;
  color: #0f172a;
  background: radial-gradient(circle at top, #ffffff 0%, #dbeafe 60%, #bfdbfe 100%);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s;
}
.arbol-scope .nodo-arbol:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.35);
}
.arbol-scope .nodo-arbol .nodo-id {
  font-size: 0.67rem;
  opacity: 0.8;
}
.arbol-scope .nodo-arbol .nodo-pos {
  font-size: 0.75rem;
}

/* Nodo raíz destacado (oro) */
.arbol-scope .nodo-arbol.raiz {
  border-color: #f59e0b;
  background: radial-gradient(circle at top, #fff7ed 0%, #fed7aa 45%, #fbbf24 100%);
  color: #92400e;
}

/* Nodo del usuario conectado (verde) */
.arbol-scope .nodo-arbol.nodo-yo {
  border-color: #22c55e;
  background: radial-gradient(circle at top, #ecfdf3 0%, #bbf7d0 45%, #22c55e 100%);
  color: #166534;
}

/* Pequeño punto arriba a la derecha para matrices activas */
.arbol-scope .nodo-arbol .dot-matriz {
  position: absolute;
  top: 3px;
  right: 5px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 2px #f9fafb;
}
.arbol-scope .nodo-arbol .dot-matriz.premium {
  background: #f97316;
}
.arbol-scope .nodo-arbol .dot-matriz.principal {
  background: #eab308;
}

/* Botón de “info” en nodo */
.arbol-scope .nodo-arbol .btn-info-nodo {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: none;
  background: #0ea5e9;
  color: #f9fafb;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(8, 47, 73, 0.45);
}
.arbol-scope .nodo-arbol .btn-info-nodo:hover {
  background: #0284c7;
}

/* Niveles por color motivador */
.arbol-scope .nodo-arbol.arbol-nivel-0 {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fff7ed 20%, #fed7aa 60%, #f59e0b 100%);
  color: #7c2d12;
}
.arbol-scope .nodo-arbol.arbol-nivel-1 {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 20%, #bfdbfe 60%, #2563eb 100%);
  color: #1e3a8a;
}
.arbol-scope .nodo-arbol.arbol-nivel-2 {
  border-color: #22c55e;
  background: linear-gradient(135deg, #ecfdf3 20%, #bbf7d0 60%, #22c55e 100%);
  color: #14532d;
}
.arbol-scope .nodo-arbol.arbol-nivel-3 {
  border-color: #e11d48;
  background: linear-gradient(135deg, #fff1f2 20%, #fecdd3 60%, #e11d48 100%);
  color: #881337;
}
.arbol-scope .nodo-arbol.arbol-nivel-4 {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, #f5f3ff 20%, #ddd6fe 60%, #8b5cf6 100%);
  color: #4c1d95;
}
.arbol-scope .nodo-arbol.arbol-nivel-5 {
  border-color: #f97316;
  background: linear-gradient(135deg, #fff7ed 20%, #fed7aa 60%, #f97316 100%);
  color: #7c2d12;
}
.arbol-scope .nodo-arbol.arbol-nivel-6 {
  border-color: #0d9488;
  background: linear-gradient(135deg, #ecfeff 20%, #a5f3fc 60%, #0d9488 100%);
  color: #134e4a;
}

/* Nodos “fantasma” o vacíos */
.arbol-scope .nodo-arbol.nodo-vacio {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top, #f9fafb 0%, #e5e7eb 60%, #e5e7eb 100%);
  color: #6b7280;
  box-shadow: none;
  opacity: 0.7;
}

/* Modo oscuro motivador */
body.dark-mode .arbol-scope .nodo-arbol {
  color: #fff;
  border: 3px solid #ffd700;
  box-shadow: 0 2px 18px #0004, 0 4px 20px #ffd70033;
}
body.dark-mode .arbol-scope .nodo-arbol.arbol-nivel-0 {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #392541 20%, #ffe259 45%, #ad7c00 100%);
}
body.dark-mode .arbol-scope .nodo-arbol.arbol-nivel-1 {
  border-color: #38bdf8;
  background: linear-gradient(135deg, #0f172a 20%, #1d4ed8 50%, #38bdf8 100%);
}
body.dark-mode .arbol-scope .nodo-arbol.arbol-nivel-2 {
  border-color: #22c55e;
  background: linear-gradient(135deg, #022c22 20%, #16a34a 60%, #bbf7d0 100%);
}
body.dark-mode .arbol-scope .nodo-arbol.arbol-nivel-3 {
  border-color: #fb7185;
  background: linear-gradient(135deg, #3b0d1c 20%, #be123c 60%, #fecaca 100%);
}
body.dark-mode .arbol-scope .nodo-arbol.arbol-nivel-4 {
  border-color: #a855f7;
  background: linear-gradient(135deg, #1e1b4b 20%, #4c1d95 60%, #a855f7 100%);
}
body.dark-mode .arbol-scope .nodo-arbol.arbol-nivel-5 {
  border-color: #fdba74;
  background: linear-gradient(135deg, #3f1f0e 20%, #ea580c 60%, #fed7aa 100%);
}
body.dark-mode .arbol-scope .nodo-arbol.arbol-nivel-6 {
  border-color: #14b8a6;
  background: linear-gradient(135deg, #022c22 20%, #0f766e 60%, #5eead4 100%);
}

body.dark-mode .arbol-scope .nodo-arbol.nodo-vacio {
  border-color: #4b5563;
  background: radial-gradient(circle at top, #020617 0%, #111827 60%, #020617 100%);
  color: #9ca3af;
}

/****** LÍNEAS SVG DEL ÁRBOL ******/
.arbol-scope .arbol-svg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  pointer-events: none;
}

/* Contenedor visual del árbol y zoom */
.arbol-scope #arbol-visual-wrap {
  width: 100%;
  height: 70vh;
  overflow-x: auto;
  overflow-y: auto;
  touch-action: none;
  background: transparent;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

/* Móvil: más alto para que se vea más árbol */
@media (max-width: 768px) {
  .arbol-scope #arbol-visual-wrap {
    height: 80vh;
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

/* Zoom container (el que se escala) */
.arbol-scope #arbol-visual-zoom {
  position: relative;
  transform-origin: 0 0;
}

/****** MODALES ÁRBOL ******/
.arbol-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  backdrop-filter: blur(4px);
  background: rgba(15, 23, 42, 0.6);
}
.arbol-modal.mostrar {
  display: flex;
  align-items: center;
  justify-content: center;
}
.arbol-modal-dialog {
  max-width: 420px;
  width: 100%;
  padding: 12px;
}
.arbol-modal-content {
  background: #f9fafb;
  border-radius: 1.25rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.6);
  overflow: hidden;
}
.arbol-modal-header {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(148, 163, 184, 0.6);
  background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
}
.arbol-modal-title {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
  color: #1d4ed8;
}
.arbol-modal-close {
  border: none;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
}
.arbol-modal-body {
  padding: 0.9rem 1rem;
  background: #f3f4f6;
}
.arbol-modal-footer {
  padding: 0.75rem 1rem;
  text-align: right;
  background: #e5e7eb;
  border-top: 1px solid rgba(148, 163, 184, 0.6);
}

/* Modal Premium motivador */
#modal-premium .arbol-modal-content {
  max-width: 360px;
  text-align: center;
  padding-bottom: 1rem;
}
#modal-premium .arbol-premium-icon {
  display: inline-flex;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-top: 1rem;
  background: radial-gradient(circle at top, #fef9c3 0%, #facc15 70%, #a16207 100%);
  box-shadow: 0 16px 40px rgba(250, 204, 21, 0.65);
}
#modal-premium h2 {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
}
#modal-premium p {
  font-size: 0.9rem;
  margin: 0.5rem 1rem 1rem;
}
#modal-premium .arbol-modal-btn {
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f9fafb;
  font-weight: 700;
}

/****** MODAL USUARIO (nuevo diseño) ******/
#usuarioModal .arbol-modal-content {
  border-radius: 1.25rem;
  overflow: hidden;
}

#usuarioModal .arbol-modal-header {
  background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
  border-bottom: 1px solid #bfdbfe;
}

#usuarioModal .arbol-modal-title {
  font-weight: 800;
  color: #1d4ed8;
}

#usuarioModal .arbol-modal-body {
  background: #f9fafb;
}

/* Tarjeta interior */
.usuario-modal-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

/* Cabecera dentro del modal (avatar + nombre + matrices) */
.usuario-modal-headerline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.usuario-modal-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  background: radial-gradient(circle at 20% 0%, #bfdbfe, #1d4ed8);
  color: #f9fafb;
  text-transform: uppercase;
}

.usuario-modal-name {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
}

.usuario-modal-matrices {
  font-size: 0.8rem;
  color: #4b5563;
}

/* Tabla de datos */
.usuario-modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.25rem;
  font-size: 0.88rem;
}

.usuario-modal-table th,
.usuario-modal-table td {
  padding: 0.35rem 0.25rem;
  vertical-align: top;
}

.usuario-modal-table th {
  width: 40%;
  font-weight: 600;
  color: #4b5563;
}

.usuario-modal-table td {
  color: #111827;
}

/* Nota final */
.usuario-modal-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Botón WhatsApp del modal */
#usuarioWhatsAppLink.btn-success {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Modo oscuro modal usuario */
body.dark-mode #usuarioModal .arbol-modal-header,
.dark #usuarioModal .arbol-modal-header {
  background: linear-gradient(135deg, #111827, #020617);
  border-bottom-color: #1f2937;
}

body.dark-mode #usuarioModal .arbol-modal-title,
.dark #usuarioModal .arbol-modal-title {
  color: #facc15;
}

body.dark-mode #usuarioModal .arbol-modal-body,
.dark #usuarioModal .arbol-modal-body {
  background: #020617;
}

body.dark-mode .usuario-modal-card,
.dark .usuario-modal-card {
  background: #0b1120;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

body.dark-mode .usuario-modal-name,
.dark .usuario-modal-name {
  color: #e5e7eb;
}

body.dark-mode .usuario-modal-matrices,
.dark .usuario-modal-matrices,
body.dark-mode .usuario-modal-table th,
.dark .usuario-modal-table th {
  color: #9ca3af;
}

body.dark-mode .usuario-modal-table td,
.dark .usuario-modal-table td {
  color: #e5e7eb;
}

body.dark-mode .usuario-modal-note,
.dark .usuario-modal-note {
  color: #6b7280;
}

/****** TARJETA “TU PATROCINADOR ORIGINAL” ******/
.sponsor-card {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #e0f2fe, #eff6ff);
  border: 1px solid #bfdbfe;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}
.sponsor-title {
  font-size: 1rem;
  margin: 0 0 0.35rem 0;
  font-weight: 800;
  color: #1d4ed8;
}
.sponsor-text {
  font-size: 0.85rem;
  margin: 0 0 0.4rem 0;
  color: #374151;
}
.sponsor-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.sponsor-contact {
  font-size: 0.8rem;
  color: #4b5563;
}

body.dark-mode .sponsor-card {
  background: radial-gradient(circle at top left, #111827, #020617);
  border-color: #1f2937;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.7);
}
body.dark-mode .sponsor-title {
  color: #facc15;
}
body.dark-mode .sponsor-text,
body.dark-mode .sponsor-contact {
  color: #e5e7eb;
}
/****** OVERRIDE PARA INTEGRAR EL ÁRBOL CON EL RESTO DE LA WEB ******/

/* Contenedor general del árbol: sin fondo propio */
.arbol-scope {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 8px 32px;
  border-radius: 1.5rem;
  box-shadow: none;          /* la sombra ya la aporta el contenedor padre */
  background: transparent;   /* usamos el fondo de #memberArea */
  color: inherit;
  min-height: auto;
  position: relative;
}

body.dark-mode .arbol-scope {
  background: transparent;
  color: inherit;
}

/* Header del árbol en línea con la identidad general */
.arbol-header .gradient-title {
  background: none;
  color: #1d4ed8; /* azul como el resto de títulos */
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(15,23,42,0.18);
}

body.dark-mode .arbol-header .gradient-title {
  color: #facc15; /* amarillo en dark */
  text-shadow: 0 1px 3px rgba(0,0,0,0.65);
}

.arbol-subtitle {
  font-size: 0.9rem;
  color: #4b5563;
}
body.dark-mode .arbol-subtitle {
  color: #e5e7eb;
  opacity: 0.9;
}

/* === Botones del filtro y toolbar, estilo "member-btn" === */
.arbol-scope .btn {
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  box-shadow: 0 4px 14px rgba(15,23,42,0.18);
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    filter 0.12s ease-out;
}

.arbol-scope .btn .txt {
  font-size: 0.85rem;
}

.arbol-scope .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15,23,42,0.25);
  filter: brightness(1.05);
}

/* Variantes principales, usando la misma paleta que el resto de la DApp */
.arbol-scope .btn-warning {
  background: linear-gradient(to right, #facc15, #eab308);
  color: #111827;
}
.arbol-scope .btn-success {
  background: linear-gradient(to right, #22c55e, #16a34a);
  color: #0f172a;
}
.arbol-scope .btn-primary {
  background: linear-gradient(to right, #3b82f6, #1d4ed8);
  color: #f9fafb;
}
.arbol-scope .btn-info {
  background: linear-gradient(to right, #0ea5e9, #0284c7);
  color: #f9fafb;
}
.arbol-scope .btn-secondary {
  background: linear-gradient(to right, #4b5563, #374151);
  color: #e5e7eb;
}
.arbol-scope .btn-light {
  background: linear-gradient(to right, #e5e7eb, #f9fafb);
  color: #111827;
}

/* Modo oscuro: más contraste */
body.dark-mode .arbol-scope .btn {
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}
body.dark-mode .arbol-scope .btn-warning {
  background: linear-gradient(to right, #fde047, #eab308);
  color: #1f2937;
}
body.dark-mode .arbol-scope .btn-light {
  background: linear-gradient(to right, #374151, #4b5563);
  color: #f9fafb;
}

/* === Inputs del filtro (select + input raíz) === */
.arbol-scope .form-control {
  min-width: 60px;
  padding: 0.4rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  color: #111827;
}

.arbol-scope .form-control:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 1px;
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.4);
}

body.dark-mode .arbol-scope .form-control {
  background: #0f172a;
  color: #e5e7eb;
  border-color: rgba(55,65,81,0.9);
}

/* Fila de filtros y botones de vista: centrados y responsivos */
.arbol-scope .filtros-linea,
.arbol-scope .vistas-linea {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.arbol-scope .filtros-linea {
  margin-bottom: 0.5rem;
}

.arbol-scope .vistas-linea {
  margin-top: 0.25rem;
}

@media (max-width: 576px) {
  .arbol-scope .filtros-linea,
  .arbol-scope .vistas-linea {
    flex-direction: column;
    align-items: stretch;
  }

  .arbol-scope .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Tabla de niveles ligeramente integrada al diseño general */
#tabla-niveles {
  background: rgba(255,255,255,0.92);
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 4px 16px rgba(15,23,42,0.08);
}
body.dark-mode #tabla-niveles {
  background: rgba(15,23,42,0.85);
  box-shadow: 0 4px 18px rgba(0,0,0,0.55);
}
/* Líneas del árbol */
.arbol-path {
  fill: none;              /* asegura que nunca se rellene */
  stroke-width: 2.5;
}

.arbol-path.animar {
  transition: stroke 0.2s ease-out, stroke-width 0.2s ease-out;
}
